Package org.zalando.fahrschein
Class ManagedCursorManager
- java.lang.Object
-
- org.zalando.fahrschein.ManagedCursorManager
-
- All Implemented Interfaces:
CursorManager
public class ManagedCursorManager extends Object implements CursorManager
-
-
Constructor Summary
Constructors Constructor Description ManagedCursorManager(URI baseUri, org.zalando.fahrschein.http.api.RequestFactory clientHttpRequestFactory)ManagedCursorManager(URI baseUri, org.zalando.fahrschein.http.api.RequestFactory clientHttpRequestFactory, AuthorizationProvider authorizationProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStreamId(Subscription subscription, String streamId)voidaddSubscription(Subscription subscription)Collection<Cursor>getCursors(String eventName)voidonSuccess(String eventName, List<Cursor> cursors)voidonSuccess(String eventName, Cursor cursor)
-
-
-
Constructor Detail
-
ManagedCursorManager
public ManagedCursorManager(URI baseUri, org.zalando.fahrschein.http.api.RequestFactory clientHttpRequestFactory, AuthorizationProvider authorizationProvider)
-
ManagedCursorManager
public ManagedCursorManager(URI baseUri, org.zalando.fahrschein.http.api.RequestFactory clientHttpRequestFactory)
-
-
Method Detail
-
addSubscription
public void addSubscription(Subscription subscription)
- Specified by:
addSubscriptionin interfaceCursorManager
-
addStreamId
public void addStreamId(Subscription subscription, String streamId)
- Specified by:
addStreamIdin interfaceCursorManager
-
onSuccess
public void onSuccess(String eventName, Cursor cursor) throws IOException, CursorCommitException
- Specified by:
onSuccessin interfaceCursorManager- Throws:
IOExceptionCursorCommitException
-
onSuccess
public void onSuccess(String eventName, List<Cursor> cursors) throws IOException
- Specified by:
onSuccessin interfaceCursorManager- Throws:
IOException
-
getCursors
public Collection<Cursor> getCursors(String eventName) throws IOException
- Specified by:
getCursorsin interfaceCursorManager- Throws:
IOException
-
-