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, fastBind, messageAlarmTime, name, ordered, pendingByteLimit, pendingMessageLimit, pull, stream
Modifier and Type | Method and Description |
---|---|
static PushSubscribeOptions |
bind(java.lang.String stream)
Deprecated.
This method resolves to
stream(String) as bind has a different meaning
and requires both stream and consumer name |
static PushSubscribeOptions |
bind(java.lang.String stream,
java.lang.String name)
Create PushSubscribeOptions for binding to
a specific stream and consumer by name.
|
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, getName, getPendingByteLimit, getPendingMessageLimit, getStream, isBind, isFastBind, isOrdered, isPull, toString
public 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)
as bind has a different meaning
and requires both stream and consumer namestream
- the stream namepublic static PushSubscribeOptions stream(java.lang.String stream)
stream
- the stream namepublic static PushSubscribeOptions bind(java.lang.String stream, java.lang.String name)
stream
- the stream namename
- the consumer namepublic static PushSubscribeOptions.Builder builder()