Class LocalSchedulingClient
java.lang.Object
io.fluxzero.sdk.tracking.client.LocalTrackingClient
io.fluxzero.sdk.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 TypeMethodDescriptionvoidclose()Closes any open resources associated with this client.Returns the associatedMessageStoreinstance.Methods inherited from class LocalTrackingClient
append, claimSegment, disconnectTracker, getPosition, read, readFromIndex, registerMonitor, resetPosition, setRetentionTime, storePositionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SchedulingClient
cancelSchedule, cancelSchedule, getSchedule, hasSchedule, schedule, scheduleMethods inherited from interface TrackingClient
disconnectTracker, getMessageType, getTopic, readAndWait, resetPosition, storePosition
-
Constructor Details
-
LocalSchedulingClient
-
-
Method Details
-
getMessageStore
Description copied from interface:HasMessageStoreReturns the associatedMessageStoreinstance.- Specified by:
getMessageStorein interfaceHasMessageStore
-
close
public void close()Description copied from interface:TrackingClientCloses any open resources associated with this client.Once closed, the client should no longer be used to fetch or commit tracking state.
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceGatewayClient- Specified by:
closein interfaceSchedulingClient- Specified by:
closein interfaceTrackingClient- Overrides:
closein classLocalTrackingClient
-