public class DefaultProviderListener extends Object implements ProviderListener
| Constructor and Description |
|---|
DefaultProviderListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onCompletedMessageSend(JmsOutboundMessageDispatch envelope)
Called when an outbound message dispatch that requested a completion callback
has reached a state where the send can be considered successful based on the QoS
level associated of the outbound message.
|
void |
onConnectionEstablished(URI remoteURI)
Called to indicate that the underlying connection to the Broker has been established
for the first time.
|
void |
onConnectionFailure(ProviderException ex)
Called to indicate that the underlying connection to the Broker has been lost and
the Provider will not perform any reconnect.
|
void |
onConnectionInterrupted(URI remoteURI)
Called from a fault tolerant Provider instance to signal that the underlying
connection to the Broker has been lost.
|
void |
onConnectionRecovered(Provider provider)
Called to indicate that a connection to the Broker has been reestablished and
that all recovery operations have succeeded and the connection will now be
transitioned to a recovered state.
|
void |
onConnectionRecovery(Provider provider)
Called to indicate that a connection to the Broker has been reestablished and
that notified listener should start to recover it's state.
|
void |
onConnectionRestored(URI remoteURI)
Called to signal that all recovery operations are now complete and the Provider
is again in a normal connected state.
|
void |
onFailedMessageSend(JmsOutboundMessageDispatch envelope,
ProviderException cause)
Called when an outbound message dispatch that requested a completion callback
has reached a state where the send can be considered failed.
|
void |
onInboundMessage(JmsInboundMessageDispatch envelope)
Called when a new Message has arrived for a registered consumer.
|
void |
onProviderException(ProviderException cause)
Called to indicate that a some client operation caused or received an
error that is not considered fatal at the provider level.
|
void |
onResourceClosed(JmsResource resource,
ProviderException cause)
Called to indicate that a currently active resource has been closed
due to some error condition, management request or some other action.
|
public void onInboundMessage(JmsInboundMessageDispatch envelope)
ProviderListeneronInboundMessage in interface ProviderListenerenvelope - The dispatch object containing the message and delivery information.public void onCompletedMessageSend(JmsOutboundMessageDispatch envelope)
ProviderListeneronCompletedMessageSend in interface ProviderListenerenvelope - the original outbound message dispatch that is now complete.public void onFailedMessageSend(JmsOutboundMessageDispatch envelope, ProviderException cause)
ProviderListeneronFailedMessageSend in interface ProviderListenerenvelope - the original outbound message dispatch that should be treated as a failed send.cause - the exception that describes the cause of the failed send.public void onConnectionInterrupted(URI remoteURI)
ProviderListeneronConnectionInterrupted in interface ProviderListenerremoteURI - The URI of the Broker whose connection was lost.public void onConnectionEstablished(URI remoteURI)
ProviderListeneronConnectionEstablished in interface ProviderListenerremoteURI - The URI of the Broker that the client has now connected to.public void onConnectionFailure(ProviderException ex)
ProviderListeneronConnectionFailure in interface ProviderListenerex - The exception that indicates the cause of this Provider failure.public void onConnectionRecovery(Provider provider)
ProviderListeneronConnectionRecovery in interface ProviderListenerprovider - The new Provider instance that will become active after the state
has been recovered.public void onConnectionRecovered(Provider provider)
ProviderListeneronConnectionRecovered in interface ProviderListenerprovider - The new Provider instance that will become active after the state
has been recovered.public void onConnectionRestored(URI remoteURI)
ProviderListeneronConnectionRestored in interface ProviderListenerremoteURI - The URI of the Broker that the client has now connected to.public void onResourceClosed(JmsResource resource, ProviderException cause)
ProviderListeneronResourceClosed in interface ProviderListenerresource - the JmsResource instance that has been closed.cause - optional exception object that indicates the cause of the close.public void onProviderException(ProviderException cause)
ProviderListeneronProviderException in interface ProviderListenercause - the exception object that is being reported to the listener.Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.