public abstract class SubscribeOptions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
SubscribeOptions.Builder<B,SO>
PushSubscribeOptions can be created using a Builder.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
bind |
protected ConsumerConfiguration |
consumerConfig |
static long |
DEFAULT_ORDERED_HEARTBEAT |
protected boolean |
fastBind |
protected long |
messageAlarmTime |
protected java.lang.String |
name |
protected boolean |
ordered |
protected long |
pendingByteLimit |
protected long |
pendingMessageLimit |
protected boolean |
pull |
protected java.lang.String |
stream |
Modifier | Constructor and Description |
---|---|
protected |
SubscribeOptions(SubscribeOptions.Builder builder,
boolean isPull,
java.lang.String deliverSubject,
java.lang.String deliverGroup,
long pendingMessageLimit,
long pendingByteLimit) |
Modifier and Type | Method and Description |
---|---|
ConsumerConfiguration |
getConsumerConfiguration()
Gets the consumer configuration.
|
java.lang.String |
getDurable()
Gets the durable consumer name held in the consumer configuration.
|
long |
getMessageAlarmTime()
Get the time amount of time allowed to elapse without a heartbeat.
|
java.lang.String |
getName()
Gets the name of the consumer.
|
long |
getPendingByteLimit()
Gets the pending byte limit.
|
long |
getPendingMessageLimit()
Gets the pending message limit.
|
java.lang.String |
getStream()
Gets the name of the stream.
|
boolean |
isBind()
Gets whether this subscription is expected to bind to an existing stream and consumer
|
boolean |
isFastBind()
Gets whether this subscription is expected to fast bind to an existing stream and consumer.
|
boolean |
isOrdered()
Gets whether this subscription is expected to ensure messages come in order
|
boolean |
isPull()
Gets whether this is a pull subscription
|
java.lang.String |
toString() |
public static final long DEFAULT_ORDERED_HEARTBEAT
protected final java.lang.String stream
protected final boolean pull
protected final boolean bind
protected final boolean fastBind
protected final boolean ordered
protected final long messageAlarmTime
protected final ConsumerConfiguration consumerConfig
protected final long pendingMessageLimit
protected final long pendingByteLimit
protected final java.lang.String name
protected SubscribeOptions(SubscribeOptions.Builder builder, boolean isPull, java.lang.String deliverSubject, java.lang.String deliverGroup, long pendingMessageLimit, long pendingByteLimit)
public java.lang.String getStream()
public java.lang.String getDurable()
public java.lang.String getName()
public boolean isPull()
public boolean isBind()
public boolean isFastBind()
public boolean isOrdered()
public long getMessageAlarmTime()
public ConsumerConfiguration getConsumerConfiguration()
public long getPendingMessageLimit()
public long getPendingByteLimit()
public java.lang.String toString()
toString
in class java.lang.Object