Contents
namespace solace.MessageConsumerEventName
An enumeration of message consumer event names. A solace.MessageConsumer will emit these events as part of its lifecycle. Applications, having created a MessageConsumer can choose to listen to all of the events described here, or any subset of these events. For Example:
mc = solace.Session.createMessageConsumer(...);
mc.on(solace.MessageConsumerEventName.CONNECT_FAILED_ERROR,
function connectFailedErrorEventCb(error) {
// error can be used as an OperationError object
});
Static Properties & Enumerations Top
string |
ACTIVE
= MessageConsumerEventName_active
| ||
string |
CONNECT_FAILED_ERROR
= MessageConsumerEventName_connectFailedError
| ||
string |
DISPOSED
= MessageConsumerEventName_disposed
| ||
string |
DOWN
= MessageConsumerEventName_down
| ||
string |
DOWN_ERROR
= MessageConsumerEventName_downError
| ||
string |
GM_DISABLED
= MessageConsumerEventName_GMDisabled
| ||
string |
INACTIVE
= MessageConsumerEventName_inactive
| ||
string |
MESSAGE
= MessageConsumerEventName_message
| ||
string |
RECONNECTED
= MessageConsumerEventName_reconnected
| ||
string |
RECONNECTING
= MessageConsumerEventName_reconnecting
| ||
string |
SUBSCRIPTION_ERROR
= MessageConsumerEventName_error
| ||
string |
SUBSCRIPTION_OK
= MessageConsumerEventName_ok
| ||
string |
UP
= MessageConsumerEventName_up
|
Events Top
Static Properties & Enumerations Detail Top
static
public
string
ACTIVE
= MessageConsumerEventName_active
MessageConsumerEventName_active
static
public
string
CONNECT_FAILED_ERROR
= MessageConsumerEventName_connectFailedError
MessageConsumerEventName_connectFailedError
static
public
string
DISPOSED
= MessageConsumerEventName_disposed
MessageConsumerEventName_disposed
static
public
string
DOWN
= MessageConsumerEventName_down
MessageConsumerEventName_down
static
public
string
DOWN_ERROR
= MessageConsumerEventName_downError
MessageConsumerEventName_downError
static
public
string
GM_DISABLED
= MessageConsumerEventName_GMDisabled
MessageConsumerEventName_GMDisabled
static
public
string
INACTIVE
= MessageConsumerEventName_inactive
MessageConsumerEventName_inactive
static
public
string
MESSAGE
= MessageConsumerEventName_message
MessageConsumerEventName_message
static
public
string
RECONNECTED
= MessageConsumerEventName_reconnected
MessageConsumerEventName_reconnected
static
public
string
RECONNECTING
= MessageConsumerEventName_reconnecting
MessageConsumerEventName_reconnecting
static
public
string
SUBSCRIPTION_ERROR
= MessageConsumerEventName_error
MessageConsumerEventName_error
static
public
string
SUBSCRIPTION_OK
= MessageConsumerEventName_ok
MessageConsumerEventName_ok
static
public
string
UP
= MessageConsumerEventName_up
MessageConsumerEventName_up
Events Detail Top
public
void
ACTIVE
( )
The message consumer has become active.
The message consumer attempted to connect but was unsuccessful. The message consumer is disabled.
public
void
DISPOSED
( )
The message consumer is being disposed. No further events will be emitted.
public
void
DOWN
( )
The message consumer is successfully disconnected. The message consumer is disabled.
The message consumer was established and then disconnected by the router, likely due to operator intervention. The message consumer is disabled.
public
void
GM_DISABLED
( )
The message consumer will not connect because the current session is incompatible with Guaranteed Messaging. The message consumer is disabled until a compatible session is available.
public
void
INACTIVE
( )
The message consumer has become inactive.
A message was received on the message consumer.
If the application throws an exception in this listener, and the consumer was configured to automatically acknowledge messages (see solace.MessageConsumerProperties#acknowledgeMode), the API will not acknowledge the message, since it may not have been successfully processed by the application. Such a message must be acknowledged manually. If the application did not retain a reference to the message, it may be redelivered by calling solace.MessageConsumer#disconnect followed by solace.MessageConsumer#connect depending on the configuration of the queue.
When there is no listener for MESSAGE on a MessageConsumer, messages are queued internally until a listener is added.
public
void
RECONNECTED
( )
The message consumer successfully auto-reconnected.
The message consumer was established and then disconnected by the router, likely due to operator intervention, but flow auto reconnect is active. The message consumer is disabled, but actively reconnecting. Expect a RECONNECTED or DOWN_ERROR on success of failure. respectively. See also MessageConsumerProperties.reconnectAttempts and reconnectIntervalInMsecs.
The Solace Message Router rejected a queue subscription (add or remove).
The subscribe or unsubscribe operation succeeded on the queue.
public
void
UP
( )
The message consumer is established.