Interface TrackingClient
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
CachingTrackingClient,InMemoryEventStoreClient,InMemoryMessageStore,InMemorySchedulingClient,WebsocketTrackingClient
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()default CompletableFuture<Void>disconnectTracker(String consumer, String trackerId, boolean sendFinalEmptyBatch) disconnectTracker(String consumer, String trackerId, boolean sendFinalEmptyBatch, Guarantee guarantee) getPosition(String consumer) read(String consumer, String trackerId, Long lastIndex, ConsumerConfiguration trackingConfiguration) default MessageBatchreadAndWait(String consumer, String trackerId, Long lastIndex, ConsumerConfiguration configuration) readFromIndex(long minIndex, int maxSize) default CompletableFuture<Void>resetPosition(String consumer, long lastIndex) resetPosition(String consumer, long lastIndex, Guarantee guarantee) default CompletableFuture<Void>storePosition(String consumer, int[] segment, long lastIndex) storePosition(String consumer, int[] segment, long lastIndex, Guarantee guarantee)
-
Method Details
-
readAndWait
default MessageBatch readAndWait(String consumer, String trackerId, Long lastIndex, ConsumerConfiguration configuration) -
read
CompletableFuture<MessageBatch> read(String consumer, String trackerId, Long lastIndex, ConsumerConfiguration trackingConfiguration) -
readFromIndex
-
storePosition
-
storePosition
CompletableFuture<Void> storePosition(String consumer, int[] segment, long lastIndex, Guarantee guarantee) -
resetPosition
-
resetPosition
-
getPosition
-
disconnectTracker
default CompletableFuture<Void> disconnectTracker(String consumer, String trackerId, boolean sendFinalEmptyBatch) -
disconnectTracker
CompletableFuture<Void> disconnectTracker(String consumer, String trackerId, boolean sendFinalEmptyBatch, Guarantee guarantee) -
getMessageType
MessageType getMessageType() -
close
void close()- Specified by:
closein interfaceAutoCloseable
-