Package io.hstream
Class Subscription.Builder
- java.lang.Object
-
- io.hstream.Subscription.Builder
-
- Enclosing class:
- Subscription
public static class Subscription.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Subscription.Builder
ackTimeoutSeconds(int ackTimeoutSeconds)
Subscription
build()
Subscription.Builder
createdTime(Instant createdTime)
Subscription.Builder
maxUnackedRecords(int maxUnackedRecords)
Subscription.Builder
offset(Subscription.SubscriptionOffset offset)
Subscription.Builder
stream(String streamName)
Subscription.Builder
subscription(String subscriptionId)
-
-
-
Method Detail
-
subscription
public Subscription.Builder subscription(String subscriptionId)
-
stream
public Subscription.Builder stream(String streamName)
-
ackTimeoutSeconds
public Subscription.Builder ackTimeoutSeconds(int ackTimeoutSeconds)
-
maxUnackedRecords
public Subscription.Builder maxUnackedRecords(int maxUnackedRecords)
-
offset
public Subscription.Builder offset(Subscription.SubscriptionOffset offset)
-
createdTime
public Subscription.Builder createdTime(Instant createdTime)
-
build
public Subscription build()
-
-