protected abstract static class SubscribeOptions.Builder<B,SO>
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
| Modifier and Type | Method and Description |
|---|---|
B |
bind(boolean bind)
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 name for the consumer.
|
protected abstract B |
getThis() |
B |
messageAlarmTime(long messageAlarmTime)
Set the total amount of time to not receive any messages or heartbeats
before calling the ErrorListener heartbeatAlarm
|
B |
name(java.lang.String name)
Sets the name of the consumer.
|
B |
stream(java.lang.String stream)
Specify the stream to attach to.
|
protected abstract B getThis()
public B stream(java.lang.String stream)
stream - the name of the streampublic B bind(boolean bind)
bind - whether to bind or notpublic B durable(java.lang.String durable)
durable - the durable namepublic B name(java.lang.String name)
name - name of the consumer.public B configuration(ConsumerConfiguration configuration)
configuration - the consumer configuration.public B messageAlarmTime(long messageAlarmTime)
messageAlarmTime - the timepublic abstract SO build()