Class SubscriberBuilder.Builder (1.13.3)

public abstract static class SubscriberBuilder.Builder

Inheritance

java.lang.Object > SubscriberBuilder.Builder

Constructors

Builder()

public Builder()

Methods

build()

public Subscriber build()
Returns
Type Description
Subscriber
Exceptions
Type Description
ApiException

setInitialLocation(SeekRequest initialLocation)

public abstract SubscriberBuilder.Builder setInitialLocation(SeekRequest initialLocation)
Parameter
Name Description
initialLocation SeekRequest
Returns
Type Description
SubscriberBuilder.Builder

setMessageConsumer(Consumer<List<SequencedMessage>> messageConsumer)

public abstract SubscriberBuilder.Builder setMessageConsumer(Consumer<List<SequencedMessage>> messageConsumer)
Parameter
Name Description
messageConsumer Consumer<List<SequencedMessage>>
Returns
Type Description
SubscriberBuilder.Builder

setPartition(Partition partition)

public abstract SubscriberBuilder.Builder setPartition(Partition partition)
Parameter
Name Description
partition Partition
Returns
Type Description
SubscriberBuilder.Builder

setResetHandler(SubscriberResetHandler resetHandler)

public abstract SubscriberBuilder.Builder setResetHandler(SubscriberResetHandler resetHandler)
Parameter
Name Description
resetHandler SubscriberResetHandler
Returns
Type Description
SubscriberBuilder.Builder

setRetryStreamRaces(boolean retryStreamRaces)

public abstract SubscriberBuilder.Builder setRetryStreamRaces(boolean retryStreamRaces)
Parameter
Name Description
retryStreamRaces boolean
Returns
Type Description
SubscriberBuilder.Builder

setStreamFactory(StreamFactories.SubscribeStreamFactory streamFactory)

public abstract SubscriberBuilder.Builder setStreamFactory(StreamFactories.SubscribeStreamFactory streamFactory)
Parameter
Name Description
streamFactory StreamFactories.SubscribeStreamFactory
Returns
Type Description
SubscriberBuilder.Builder

setSubscriptionPath(SubscriptionPath path)

public abstract SubscriberBuilder.Builder setSubscriptionPath(SubscriptionPath path)
Parameter
Name Description
path SubscriptionPath
Returns
Type Description
SubscriberBuilder.Builder