public interface JmsConnectionListener
| Modifier and Type | Method and Description |
|---|---|
void |
onConnectionEstablished(URI remoteURI)
Called when a connection has been successfully established.
|
void |
onConnectionFailure(Throwable error)
Called when an unrecoverable error occurs and the Connection must be closed.
|
void |
onConnectionInterrupted(URI remoteURI)
Called when the Connection to the remote peer is lost.
|
void |
onConnectionRestored(URI remoteURI)
Called when normal communication has been restored to a remote peer.
|
void |
onConsumerClosed(javax.jms.MessageConsumer consumer,
Throwable cause)
Called when the MessageConsumer is closed due to remote action or local error detection.
|
void |
onInboundMessage(JmsInboundMessageDispatch envelope)
Called when a Connection is notified that a new Message has arrived for
one of it's currently active subscriptions.
|
void |
onProducerClosed(javax.jms.MessageProducer producer,
Throwable cause)
Called when the MessageProducer is closed due to remote action or local error detection.
|
void |
onSessionClosed(javax.jms.Session session,
Throwable cause)
Called when the session is closed due to remote action or local error detection.
|
void onConnectionEstablished(URI remoteURI)
remoteURI - The URI of the Broker this client is now connected to.void onConnectionFailure(Throwable error)
error - The error that triggered the failure.void onConnectionInterrupted(URI remoteURI)
remoteURI - The URI of the Broker previously connected to.void onConnectionRestored(URI remoteURI)
remoteURI - The URI of the Broker that this client is now connected to.void onInboundMessage(JmsInboundMessageDispatch envelope)
envelope - The envelope that contains the incoming message and it's delivery information.void onSessionClosed(javax.jms.Session session,
Throwable cause)
session - The session that was closed and needs to be cleaned up.cause - The exception that provides additional context on the closure.void onConsumerClosed(javax.jms.MessageConsumer consumer,
Throwable cause)
consumer - The consumer that was closed and needs to be cleaned up.cause - The exception that provides additional context on the closure.void onProducerClosed(javax.jms.MessageProducer producer,
Throwable cause)
producer - The producer that was closed and needs to be cleaned up.cause - The exception that provides additional context on the closure.Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.