public static enum Topics.UnsubscribeReason extends Enum<Topics.UnsubscribeReason>
Enum Constant and Description |
---|
AUTHORIZATION
The unsubscription occurred because the session is no longer
authorized to access the topic.
|
BACK_PRESSURE
The server has a significant backlog of messages for the session, and
the topic specification has the
conflation topic property set to "unsubscribe". |
BRANCH_MAPPINGS
The unsubscription occurred because branch mapping rules changed.
|
CONTROL
The unsubscription was requested either by another session or by the
server.
|
REMOVAL
The unsubscription occurred because the topic was removed.
|
REQUESTED
Unsubscribed by the subscribing session.
|
STREAM_CHANGE
A fallback stream has been unsubscribed due to the addition of a
stream that selects the topic.
|
SUBSCRIPTION_REFRESH
The server has re-subscribed this session to the topic.
|
UNKNOWN_UNSUBSCRIBE_REASON
A reason that is unsupported by the session.
|
Modifier and Type | Method and Description |
---|---|
static Topics.UnsubscribeReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Topics.UnsubscribeReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Topics.UnsubscribeReason REQUESTED
public static final Topics.UnsubscribeReason CONTROL
public static final Topics.UnsubscribeReason REMOVAL
public static final Topics.UnsubscribeReason AUTHORIZATION
public static final Topics.UnsubscribeReason SUBSCRIPTION_REFRESH
This can happen if a set of servers is configured to use session replication, and a session connected to one server reconnects ( "fails over") to a different server.
public static final Topics.UnsubscribeReason STREAM_CHANGE
public static final Topics.UnsubscribeReason BACK_PRESSURE
conflation topic property
set to "unsubscribe". The session can
resubscribe to the topic. The unsubscription is not persisted to the
cluster. If the session fails over to a different server it will be
resubscribed to the topic.public static final Topics.UnsubscribeReason BRANCH_MAPPINGS
SessionTrees
public static final Topics.UnsubscribeReason UNKNOWN_UNSUBSCRIBE_REASON
public static Topics.UnsubscribeReason[] values()
for (Topics.UnsubscribeReason c : Topics.UnsubscribeReason.values()) System.out.println(c);
public static Topics.UnsubscribeReason valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2024 DiffusionData Ltd. All Rights Reserved.