public class PullSubscribeOptions extends SubscribeOptions
PullSubscribeOptions.Builder
or static helper methods.Modifier and Type | Class and Description |
---|---|
static class |
PullSubscribeOptions.Builder
PullSubscribeOptions can be created using a Builder.
|
Modifier and Type | Field and Description |
---|---|
static PullSubscribeOptions |
DEFAULT_PULL_OPTS |
bind, consumerConfig, DEFAULT_ORDERED_HEARTBEAT, fastBind, messageAlarmTime, name, ordered, pendingByteLimit, pendingMessageLimit, pull, stream
Modifier and Type | Method and Description |
---|---|
static PullSubscribeOptions |
bind(java.lang.String stream,
java.lang.String name)
Create PullSubscribeOptions for binding to
a specific stream and consumer by name.
|
static PullSubscribeOptions.Builder |
builder()
Macro to start a PullSubscribeOptions builder
|
static PullSubscribeOptions |
fastBind(java.lang.String stream,
java.lang.String name)
Create PullSubscribeOptions where you are fast-binding to
a specific stream and consumer by name.
|
getConsumerConfiguration, getDurable, getMessageAlarmTime, getName, getPendingByteLimit, getPendingMessageLimit, getStream, isBind, isFastBind, isOrdered, isPull, toString
public static final PullSubscribeOptions DEFAULT_PULL_OPTS
public static PullSubscribeOptions.Builder builder()
public static PullSubscribeOptions bind(java.lang.String stream, java.lang.String name)
stream
- the stream name to bind toname
- the consumer namepublic static PullSubscribeOptions fastBind(java.lang.String stream, java.lang.String name)
stream
- the stream name to bind toname
- the consumer name, commonly the durable name