Package org.zalando.fahrschein
Interface CursorManager
-
- All Known Implementing Classes:
ManagedCursorManager
public interface CursorManagerManages cursor offsets for one consumer. One consumer can handle several distinct events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaddStreamId(Subscription subscription, java.lang.String streamId)default voidaddSubscription(Subscription subscription)java.util.Collection<Cursor>getCursors(java.lang.String eventName)voidonSuccess(java.lang.String eventName, java.util.List<Cursor> cursors)voidonSuccess(java.lang.String eventName, Cursor cursor)
-
-
-
Method Detail
-
onSuccess
void onSuccess(java.lang.String eventName, Cursor cursor) throws java.io.IOException- Throws:
java.io.IOException
-
onSuccess
void onSuccess(java.lang.String eventName, java.util.List<Cursor> cursors) throws java.io.IOException- Throws:
java.io.IOException
-
getCursors
java.util.Collection<Cursor> getCursors(java.lang.String eventName) throws java.io.IOException
- Throws:
java.io.IOException
-
addSubscription
default void addSubscription(Subscription subscription)
-
addStreamId
default void addStreamId(Subscription subscription, java.lang.String streamId)
-
-