Package org.zalando.fahrschein
Class SubscriptionBuilder
java.lang.Object
org.zalando.fahrschein.SubscriptionBuilder
-
Method Summary
Modifier and TypeMethodDescriptionreadFromCursors(List<Cursor> initialCursors) This method allows clients to stream events on the given subscription ID.withAuthorization(Authorization authorization) withConsumerGroup(String consumerGroup)
-
Method Details
-
readFromBegin
-
readFromEnd
-
readFromCursors
-
withConsumerGroup
-
withAuthorization
-
subscribe
This method allows clients to stream events on the given subscription ID.
Note: Since the subscription ID is already provided, fahrschein will not attempt to create a new subscription for the events and will therefore will only consider applicationName and eventNames and will ignore other SubscriptionBuilder parameters.
- Parameters:
subscriptionId- event(s) subscription ID.- Returns:
-
subscribe
- Throws:
IOException
-