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, String streamId)default voidaddSubscription(Subscription subscription)Collection<Cursor>getCursors(String eventName)voidonSuccess(String eventName, List<Cursor> cursors)voidonSuccess(String eventName, Cursor cursor)
-
-
-
Method Detail
-
onSuccess
void onSuccess(String eventName, Cursor cursor) throws IOException
- Throws:
IOException
-
onSuccess
void onSuccess(String eventName, List<Cursor> cursors) throws IOException
- Throws:
IOException
-
getCursors
Collection<Cursor> getCursors(String eventName) throws IOException
- Throws:
IOException
-
addSubscription
default void addSubscription(Subscription subscription)
-
addStreamId
default void addStreamId(Subscription subscription, String streamId)
-
-