public class PushSubscribeOptions extends SubscribeOptions
PushSubscribeOptions.Builder or static helper methods.| Modifier and Type | Class and Description |
|---|---|
static class |
PushSubscribeOptions.Builder
PushSubscribeOptions can be created using a Builder.
|
| Modifier and Type | Field and Description |
|---|---|
static PushSubscribeOptions |
DEFAULT_PUSH_OPTS |
bind, consumerConfig, DEFAULT_ORDERED_HEARTBEAT, messageAlarmTime, ordered, pendingByteLimit, pendingMessageLimit, pull, stream| Modifier and Type | Method and Description |
|---|---|
static PushSubscribeOptions |
bind(java.lang.String stream)
Deprecated.
This method is no longer used as bind has a different meaning.
See
stream(String) instead. |
static PushSubscribeOptions |
bind(java.lang.String stream,
java.lang.String durable)
Macro to create a PushSubscribeOptions where you are
binding to an existing stream and durable consumer.
|
static PushSubscribeOptions.Builder |
builder()
Macro to start a PushSubscribeOptions builder
|
java.lang.String |
getDeliverGroup()
Gets the deliver group held in the consumer configuration.
|
java.lang.String |
getDeliverSubject()
Gets the deliver subject held in the consumer configuration.
|
static PushSubscribeOptions |
stream(java.lang.String stream)
Macro to create a default PushSubscribeOptions except for
where you must specify the stream because
the subject could apply to both a stream and a mirror.
|
getConsumerConfiguration, getDurable, getMessageAlarmTime, getPendingByteLimit, getPendingMessageLimit, getStream, isBind, isOrdered, isPull, toStringpublic static final PushSubscribeOptions DEFAULT_PUSH_OPTS
public java.lang.String getDeliverSubject()
public java.lang.String getDeliverGroup()
@Deprecated public static PushSubscribeOptions bind(java.lang.String stream)
stream(String) instead.stream - the stream namepublic static PushSubscribeOptions stream(java.lang.String stream)
stream - the stream namepublic static PushSubscribeOptions bind(java.lang.String stream, java.lang.String durable)
stream - the stream namedurable - the durable namepublic static PushSubscribeOptions.Builder builder()