Class InMemorySchedulingClient
- java.lang.Object
-
- io.fluxcapacitor.javaclient.tracking.client.InMemoryMessageStore
-
- io.fluxcapacitor.javaclient.scheduling.client.InMemorySchedulingClient
-
- All Implemented Interfaces:
Monitored<SerializedMessage>,GatewayClient,SchedulingClient,TrackingClient,AutoCloseable
public class InMemorySchedulingClient extends InMemoryMessageStore implements SchedulingClient
-
-
Constructor Summary
Constructors Constructor Description InMemorySchedulingClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwaitablecancelSchedule(String scheduleId)MessageBatchreadAndWait(String consumer, String trackerId, Long previousLastIndex, TrackingConfiguration configuration)Awaitableschedule(ScheduledMessage... schedules)Awaitablesend(SerializedMessage... messages)voidsetClock(Clock clock)protected booleanshouldWait(Map<Long,SerializedMessage> tailMap)AwaitablestorePosition(String consumer, int[] segment, long lastIndex)-
Methods inherited from class io.fluxcapacitor.javaclient.tracking.client.InMemoryMessageStore
close, disconnectTracker, read, readFromIndex, registerMonitor, resetPosition
-
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
close, getClock
-
-
-
-
Method Detail
-
readAndWait
public MessageBatch readAndWait(String consumer, String trackerId, Long previousLastIndex, TrackingConfiguration configuration)
- Specified by:
readAndWaitin interfaceTrackingClient- Overrides:
readAndWaitin classInMemoryMessageStore
-
shouldWait
protected boolean shouldWait(Map<Long,SerializedMessage> tailMap)
- Overrides:
shouldWaitin classInMemoryMessageStore
-
storePosition
public Awaitable storePosition(String consumer, int[] segment, long lastIndex)
- Specified by:
storePositionin interfaceTrackingClient- Overrides:
storePositionin classInMemoryMessageStore
-
schedule
public Awaitable schedule(ScheduledMessage... schedules)
- Specified by:
schedulein interfaceSchedulingClient
-
cancelSchedule
public Awaitable cancelSchedule(String scheduleId)
- Specified by:
cancelSchedulein interfaceSchedulingClient
-
send
public Awaitable send(SerializedMessage... messages)
- Specified by:
sendin interfaceGatewayClient- Overrides:
sendin classInMemoryMessageStore
-
setClock
public void setClock(Clock clock)
-
-