Class TopicUnsubscribeReason
The reason for an unsubscription.
Inheritance
Inherited Members
Namespace: PushTechnology.ClientInterface.Client.Features
Assembly: Diffusion.Client.dll
Syntax
public class TopicUnsubscribeReason : ByteCodeEnum<TopicUnsubscribeReason>
Fields
AUTHORIZATION
The unsubscription occurred because the session is no longer authorized to access the topic.
Declaration
public static readonly TopicUnsubscribeReason AUTHORIZATION
Field Value
Type | Description |
---|---|
TopicUnsubscribeReason | The topic unsubscribe reason when 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 property set to "unsubscribe".
Declaration
public static readonly TopicUnsubscribeReason BACK_PRESSURE
Field Value
Type | Description |
---|---|
TopicUnsubscribeReason | The topic unsubscribe reason due to a backlog of messages. |
Remarks
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.
Added in version 6.1.
BRANCH_MAPPINGS
The unsubscription occurred because branch mapping rules changed. ISessionTrees
Declaration
public static readonly TopicUnsubscribeReason BRANCH_MAPPINGS
Field Value
Type | Description |
---|---|
TopicUnsubscribeReason | The topic unsubscribe reason due to branch mapping rules having changed. |
Remarks
Since 6.7
CONTROL
Unsubscribed by controller.
Declaration
public static readonly TopicUnsubscribeReason CONTROL
Field Value
Type | Description |
---|---|
TopicUnsubscribeReason | The topic unsubscribe reason due to unsubscription by the controller. |
REMOVAL
Topic removed.
Declaration
public static readonly TopicUnsubscribeReason REMOVAL
Field Value
Type | Description |
---|---|
TopicUnsubscribeReason | The topic unsubscribe reason due to topic removal. |
REQUESTED
Unsubscribed by client.
Declaration
public static readonly TopicUnsubscribeReason REQUESTED
Field Value
Type | Description |
---|---|
TopicUnsubscribeReason | The topic unsubscribe reason due to unsubscription by the client. |
STREAM_CHANGE
A fallback stream has been unsubscribed due to the addition of a stream that selects the topic.
Declaration
public static readonly TopicUnsubscribeReason STREAM_CHANGE
Field Value
Type | Description |
---|---|
TopicUnsubscribeReason | The topic unsubscribe reason due to stream change. |
Remarks
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.
Declaration
public static readonly TopicUnsubscribeReason SUBSCRIPTION_REFRESH
Field Value
Type | Description |
---|---|
TopicUnsubscribeReason | The topic unsubscribe reason when the server has re-subscribed a session to the topic. |
Remarks
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
UNKNOWN
A reason that is unsupported by the session.
Declaration
public static readonly TopicUnsubscribeReason UNKNOWN
Field Value
Type | Description |
---|---|
TopicUnsubscribeReason | The topic unsubscribe reason for a reason that is unsupported by the session. |
Remarks
Added in version 6.1.