Class TestServerScheduleStore
java.lang.Object
io.fluxcapacitor.testserver.scheduling.TestServerScheduleStore
- All Implemented Interfaces:
Monitored<List<SerializedMessage>>
,HasMessageStore
,MessageStore
,SchedulingClient
,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a batch of messages starting from the givenlastIndex
(exclusive).Retrieves a batch of messages starting from the givenminIndex
.protected void
rescheduleNextDeadline
(long nextIndex) schedule
(Guarantee guarantee, SerializedSchedule... schedules) Schedule one or more serialized schedules with a specifiedGuarantee
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluxcapacitor.common.tracking.MessageStore
append, append, close, getMessageStore, setRetentionTime, unwrap
Methods inherited from interface io.fluxcapacitor.common.Monitored
registerMonitor
Methods inherited from interface io.fluxcapacitor.javaclient.scheduling.client.SchedulingClient
cancelSchedule, cancelSchedule, close, getSchedule, hasSchedule, schedule
-
Constructor Details
-
TestServerScheduleStore
-
-
Method Details
-
schedule
Description copied from interface:SchedulingClient
Schedule one or more serialized schedules with a specifiedGuarantee
.- Specified by:
schedule
in interfaceSchedulingClient
- Parameters:
guarantee
- Delivery guarantee to apply (e.g., none, sent, stored).schedules
- One or more schedules to register.- Returns:
- A future that completes when the scheduling is acknowledged.
-
getBatch
Description copied from interface:MessageStore
Retrieves a batch of messages starting from the givenlastIndex
(exclusive).- Specified by:
getBatch
in interfaceMessageStore
- Parameters:
minIndex
- minimum message index to start from (exclusive)maxSize
- maximum number of messages to retrieve- Returns:
- a list of
SerializedMessage
instances
-
getBatch
Description copied from interface:MessageStore
Retrieves a batch of messages starting from the givenminIndex
.- Specified by:
getBatch
in interfaceMessageStore
- Parameters:
minIndex
- minimum message index to start frommaxSize
- maximum number of messages to retrieveinclusive
- whether to include the message atminIndex
- Returns:
- a list of
SerializedMessage
instances
-
rescheduleNextDeadline
protected void rescheduleNextDeadline(long nextIndex)
-