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.
|
bind, consumerConfig, DEFAULT_ORDERED_HEARTBEAT, messageAlarmTime, ordered, 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, getStream, isBind, isOrdered, isPull, toString
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()