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.
|
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.
|
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.
A stream that receives an unsubscription notification with this
reason will also receive a subscription notification with the new
TopicSpecification
or TopicDetails
.
public static final Topics.UnsubscribeReason STREAM_CHANGE
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 © 2016 Push Technology Ltd. All Rights Reserved.