protected abstract static class SubscribeOptions.Builder<B,SO>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected ConsumerConfiguration |
consumerConfig |
protected java.lang.String |
durable |
protected boolean |
isBind |
protected java.lang.String |
stream |
| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
| Modifier and Type | Method and Description |
|---|---|
B |
bind(boolean isBind)
Specify the to attach in direct mode
|
abstract SO |
build()
Builds the subscribe options.
|
B |
configuration(ConsumerConfiguration configuration)
The consumer configuration.
|
B |
durable(java.lang.String durable)
Sets the durable consumer name for the subscriber.
|
protected abstract B |
getThis() |
B |
stream(java.lang.String stream)
Specify the stream to attach to.
|
protected java.lang.String stream
protected boolean isBind
protected java.lang.String durable
protected ConsumerConfiguration consumerConfig
protected abstract B getThis()
public B stream(java.lang.String stream)
stream - the name of the streampublic B bind(boolean isBind)
isBind - whether to bind or notpublic B durable(java.lang.String durable)
durable - the durable namepublic B configuration(ConsumerConfiguration configuration)
configuration - the consumer configuration.public abstract SO build()