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 |
onConsumerRemotelyClosed(javax.jms.MessageConsumer consumer,
Exception cause)
Called when the remote peer closes a MessageConsumer.
|
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 |
onProducerRemotelyClosed(javax.jms.MessageProducer producer,
Exception cause)
Called when the remote peer closes a MessageProducer.
|
void |
onSessionRemotelyClosed(javax.jms.Session session,
Exception cause)
Called when the remote peer closes a session.
|
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 onSessionRemotelyClosed(javax.jms.Session session, Exception cause)
session
- The session that was closed on the remote end.cause
- The exception that provides additional context on the remote closure.void onConsumerRemotelyClosed(javax.jms.MessageConsumer consumer, Exception cause)
consumer
- The consumer that was closed on the remote end.cause
- The exception that provides additional context on the remote closure.void onProducerRemotelyClosed(javax.jms.MessageProducer producer, Exception cause)
producer
- The producer that was closed on the remote end.cause
- The exception that provides additional context on the remote closure.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.