Interface TrackingClient
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
InMemoryEventStoreClient,InMemoryMessageStore,InMemorySchedulingClient,WebsocketTrackingClient
public interface TrackingClient extends AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidclose()AwaitabledisconnectTracker(String consumer, String trackerId, boolean sendFinalEmptyBatch)CompletableFuture<MessageBatch>read(String consumer, String trackerId, Long lastIndex, TrackingConfiguration trackingConfiguration)default MessageBatchreadAndWait(String consumer, String trackerId, Long lastIndex, TrackingConfiguration configuration)List<SerializedMessage>readFromIndex(long minIndex, int maxSize)AwaitableresetPosition(String consumer, long lastIndex)AwaitablestorePosition(String consumer, int[] segment, long lastIndex)
-
-
-
Method Detail
-
readAndWait
default MessageBatch readAndWait(String consumer, String trackerId, Long lastIndex, TrackingConfiguration configuration)
-
read
CompletableFuture<MessageBatch> read(String consumer, String trackerId, Long lastIndex, TrackingConfiguration trackingConfiguration)
-
readFromIndex
List<SerializedMessage> readFromIndex(long minIndex, int maxSize)
-
disconnectTracker
Awaitable disconnectTracker(String consumer, String trackerId, boolean sendFinalEmptyBatch)
-
close
void close()
- Specified by:
closein interfaceAutoCloseable
-
-