Class LocalSchedulingClient
java.lang.Object
io.fluxcapacitor.javaclient.tracking.client.LocalTrackingClient
io.fluxcapacitor.javaclient.scheduling.client.LocalSchedulingClient
- All Implemented Interfaces:
Monitored<List<SerializedMessage>>
,HasMessageStore
,GatewayClient
,SchedulingClient
,TrackingClient
,AutoCloseable
A client implementation for managing scheduling operations using an in-memory schedule store.
This class extends
LocalTrackingClient
and implements the SchedulingClient
interface.
It serves as a local, non-distributed scheduling client primarily useful for testing scenarios
or where an in-memory schedule store suffices.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes any open resources associated with this client.Returns the associatedMessageStore
instance.Methods inherited from class io.fluxcapacitor.javaclient.tracking.client.LocalTrackingClient
append, claimSegment, disconnectTracker, getPosition, read, readFromIndex, registerMonitor, resetPosition, setRetentionTime, storePosition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluxcapacitor.javaclient.scheduling.client.SchedulingClient
cancelSchedule, cancelSchedule, getSchedule, hasSchedule, schedule, schedule
Methods inherited from interface io.fluxcapacitor.javaclient.tracking.client.TrackingClient
disconnectTracker, getMessageType, getTopic, readAndWait, resetPosition, storePosition
-
Constructor Details
-
LocalSchedulingClient
-
-
Method Details
-
getMessageStore
Description copied from interface:HasMessageStore
Returns the associatedMessageStore
instance.- Specified by:
getMessageStore
in interfaceHasMessageStore
-
close
public void close()Description copied from interface:TrackingClient
Closes any open resources associated with this client.Once closed, the client should no longer be used to fetch or commit tracking state.
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceGatewayClient
- Specified by:
close
in interfaceSchedulingClient
- Specified by:
close
in interfaceTrackingClient
- Overrides:
close
in classLocalTrackingClient
-