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 |
onInboundMessage(JmsInboundMessageDispatch envelope)
Called when a Connection is notified that a new Message has arrived for
one of it's currently active subscriptions.
|
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.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.