public interface CursorManager
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.collect.Ordering<String> |
OFFSET_ORDERING |
| Modifier and Type | Method and Description |
|---|---|
default void |
addSubscription(Subscription subscription) |
default void |
fromNewestAvailableOffsets(String eventName,
List<Partition> partitions)
Initializes offsets to start streaming from the newest available offset.
|
default void |
fromOldestAvailableOffset(String eventName,
List<Partition> partitions)
Initializes offsets to start streaming at the oldest available offset (BEGIN).
|
Collection<Cursor> |
getCursors(String eventName) |
void |
onError(String eventName,
Cursor cursor,
Throwable throwable) |
void |
onSuccess(String eventName,
Cursor cursor) |
default void |
updatePartitions(String eventName,
List<Partition> partitions)
Updates offsets in case the currently stored offset is no longer available.
|
static final com.google.common.collect.Ordering<String> OFFSET_ORDERING
void onSuccess(String eventName, Cursor cursor) throws IOException
IOExceptionvoid onError(String eventName, Cursor cursor, Throwable throwable) throws IOException
IOExceptionCollection<Cursor> getCursors(String eventName) throws IOException
IOExceptiondefault void addSubscription(Subscription subscription)
default void fromNewestAvailableOffsets(String eventName, List<Partition> partitions) throws IOException
IOExceptiondefault void fromOldestAvailableOffset(String eventName, List<Partition> partitions) throws IOException
IOExceptiondefault void updatePartitions(String eventName, List<Partition> partitions) throws IOException
IOExceptionCopyright © 2016 Zalando SE. All rights reserved.