Enum Class Topics.UnsubscribeReason
java.lang.Object
java.lang.Enum<Topics.UnsubscribeReason>
com.pushtechnology.diffusion.client.features.Topics.UnsubscribeReason
- All Implemented Interfaces:
Serializable
,Comparable<Topics.UnsubscribeReason>
,Constable
- Enclosing interface:
- Topics
The reason that an unsubscription occurred.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe unsubscription occurred because the session is no longer authorized to access the topic.The server has a significant backlog of messages for the session, and the topic specification has theconflation topic property
set to "unsubscribe".The unsubscription occurred because branch mapping rules changed.The unsubscription was requested either by another session or by the server.The unsubscription occurred because the topic was removed.Unsubscribed by the subscribing session.A fallback stream has been unsubscribed due to the addition of a stream that selects the topic.The server has re-subscribed this session to the topic.A reason that is unsupported by the session. -
Method Summary
Modifier and TypeMethodDescriptionstatic Topics.UnsubscribeReason
Returns the enum constant of this class with the specified name.static Topics.UnsubscribeReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUESTED
Unsubscribed by the subscribing session. -
CONTROL
The unsubscription was requested either by another session or by the server. -
REMOVAL
The unsubscription occurred because the topic was removed. -
AUTHORIZATION
The unsubscription occurred because the session is no longer authorized to access the topic.- Since:
- 5.9
-
SUBSCRIPTION_REFRESH
The server has re-subscribed this session to the topic. Existing streams are unsubscribed because the topic type and other attributes may have changed.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.
- Since:
- 5.9
-
STREAM_CHANGE
A fallback stream has been unsubscribed due to the addition of a stream that selects the topic.- Since:
- 5.9
-
BACK_PRESSURE
The server has a significant backlog of messages for the session, and the topic specification has theconflation 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. -
BRANCH_MAPPINGS
The unsubscription occurred because branch mapping rules changed.- Since:
- 6.7
- See Also:
-
UNKNOWN_UNSUBSCRIBE_REASON
A reason that is unsupported by the session.- Since:
- 6.1
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-