protected abstract static class SubscribeOptions.Builder<B,SO>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
bind |
protected ConsumerConfiguration |
cc |
protected java.lang.String |
durable |
protected boolean |
fastBind |
protected long |
messageAlarmTime |
protected java.lang.String |
name |
protected boolean |
ordered |
protected java.lang.String |
stream |
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
B |
bind(boolean bind)
Specify binding to an existing consumer via name.
|
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 java.lang.String stream
protected boolean bind
protected boolean fastBind
protected java.lang.String durable
protected java.lang.String name
protected ConsumerConfiguration cc
protected long messageAlarmTime
protected boolean ordered
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()