Contents
namespace solace.SessionEventCode
An attribute of SessionEvent. This enumeration represents the different events emitted by Session through the session event callback.
When a session is no longer in a usable state, the API tears down the underlying connection and notifies the application with one of the following session events:
Static Properties & Enumerations Top
number |
ACKNOWLEDGED_MESSAGE
= 25
| ||
number |
CAN_ACCEPT_DATA
= 13
| ||
number |
CONNECT_FAILED_ERROR
= 2
| ||
number |
DISCONNECTED
= 14
| ||
number |
DOWN_ERROR
= 1
| ||
number |
GUARANTEED_MESSAGE_PUBLISHER_DOWN
= 29
| ||
number |
MESSAGE
= 28
| ||
number |
PROPERTY_UPDATE_ERROR
= 11
| ||
number |
PROPERTY_UPDATE_OK
= 10
| ||
number |
PROVISION_ERROR
= 30
| ||
number |
PROVISION_OK
= 31
| ||
number |
RECONNECTED_NOTICE
= 23
| ||
number |
RECONNECTING_NOTICE
= 22
| ||
number |
REJECTED_MESSAGE_ERROR
= 4
| ||
number |
REPUBLISHING_UNACKED_MESSAGES
= 24
| ||
number |
REQUEST_ABORTED
= 8
| ||
number |
REQUEST_TIMEOUT
= 9
| ||
number |
SUBSCRIPTION_ERROR
= 5
| ||
number |
SUBSCRIPTION_OK
= 6
| ||
number |
UNSUBSCRIBE_TE_TOPIC_ERROR
= 27
| ||
number |
UNSUBSCRIBE_TE_TOPIC_OK
= 26
| ||
number | UP_NOTICE | ||
number |
VIRTUALROUTER_NAME_CHANGED
= 7
|
Events Top
Static Properties & Enumerations Detail Top
static
public
number
ACKNOWLEDGED_MESSAGE
= 25
25
static
public
number
CAN_ACCEPT_DATA
= 13
13
static
public
number
CONNECT_FAILED_ERROR
= 2
2
static
public
number
DISCONNECTED
= 14
14
static
public
number
DOWN_ERROR
= 1
1
static
public
number
GUARANTEED_MESSAGE_PUBLISHER_DOWN
= 29
29
static
public
number
MESSAGE
= 28
28
static
public
number
PROPERTY_UPDATE_ERROR
= 11
11
static
public
number
PROPERTY_UPDATE_OK
= 10
10
static
public
number
PROVISION_ERROR
= 30
30
static
public
number
PROVISION_OK
= 31
31
static
public
number
RECONNECTED_NOTICE
= 23
23
static
public
number
RECONNECTING_NOTICE
= 22
22
static
public
number
REJECTED_MESSAGE_ERROR
= 4
4
static
public
number
REPUBLISHING_UNACKED_MESSAGES
= 24
24
static
public
number
REQUEST_ABORTED
= 8
8
Deprecated: A request was aborted because the session is being disconnected. Use solace.RequestFailEvent instead.
static
public
number
REQUEST_TIMEOUT
= 9
9
Deprecated: The event represents a timed-out request API call. Use solace.RequestFailEvent instead.
static
public
number
SUBSCRIPTION_ERROR
= 5
5
static
public
number
SUBSCRIPTION_OK
= 6
6
static
public
number
UNSUBSCRIBE_TE_TOPIC_ERROR
= 27
27
static
public
number
UNSUBSCRIBE_TE_TOPIC_OK
= 26
26
static
public
number
UP_NOTICE
static
public
number
VIRTUALROUTER_NAME_CHANGED
= 7
7
Events Detail Top
A message was acknowledged by the router.
public
void
CAN_ACCEPT_DATA
( )
The session transport can accept data again. This event will occur after an solace.OperationError is thrown from an API call with a subcode of solace.ErrorSubcode.INSUFFICIENT_SPACE to indicate the operation can be retried. This event is used both after session-level transport buffer exhaustion, and Guaranteed Messaging Window exhaustion.
The session attempted to connect but was unsuccessful.
public
void
DISCONNECTED
( )
The session connect operation failed, or the session that was once up, is now disconnected.
The session was established and then went down.
Guaranteed Messaging Publisher has been closed by the Solace message router. This usually indicates an operator has disabled the message spool.
A Direct message was received on the session. This event code is only used on the EventEmitter session interface. If using the deprecated callback interface, messages are received via the callback provided in solace.MessageRxCBInfo.
The event represents a failed update of a mutable session property.
The event represents a successful update of a mutable session property.
The provision or deprovision operation failed.
The provision or deprovision operation succeeded.
The automatic reconnect of the Session was successful, and the session is established again.
The session has gone down, and an automatic reconnection attempt is in progress.
The Solace Message Router rejected a published message.
The session has automatically recovered after the Guaranteed Message publisher failed to reconnect. Messages sent but not acknowledged are being renumbered and retransmitted. Some messages may be duplicated in the system.
The Solace Message Router rejected a subscription (add or remove).
The subscribe or unsubscribe operation succeeded.
Unsubscribing the topic from the Durable Topic Endpoint failed.
public
void
UNSUBSCRIBE_TE_TOPIC_OK
( )
Unsubscribing the topic from the Durable Topic Endpoint succeeded.
public
void
UP_NOTICE
( )
The Session is ready to send/receive messages and perform control operations.
At this point the transport session is up, the Session has logged in, and the P2PInbox subscription is added.
The session is established.
The Solace Message Router's Virtual Router Name changed during a reconnect operation.