public interface ProviderListener
| 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.
|
void onInboundMessage(JmsInboundMessageDispatch envelope)
envelope - The dispatch object containing the message and delivery information.void onCompletedMessageSend(JmsOutboundMessageDispatch envelope)
envelope - the original outbound message dispatch that is now complete.void onFailedMessageSend(JmsOutboundMessageDispatch envelope, ProviderException cause)
envelope - the original outbound message dispatch that should be treated as a failed send.cause - the exception that describes the cause of the failed send.void onConnectionInterrupted(URI remoteURI)
remoteURI - The URI of the Broker whose connection was lost.void onConnectionRecovery(Provider provider) throws Exception
provider - The new Provider instance that will become active after the state
has been recovered.Exception - if an error occurs during recovery attempt, this will fail
the Provider that's being used for recovery.void onConnectionRecovered(Provider provider) throws Exception
provider - The new Provider instance that will become active after the state
has been recovered.Exception - if an error occurs during recovery attempt, this will fail
the Provider that's being used for recovery.void onConnectionRestored(URI remoteURI)
remoteURI - The URI of the Broker that the client has now connected to.void onConnectionEstablished(URI remoteURI)
remoteURI - The URI of the Broker that the client has now connected to.void onConnectionFailure(ProviderException ex)
ex - The exception that indicates the cause of this Provider failure.void onResourceClosed(JmsResource resource, ProviderException cause)
resource - the JmsResource instance that has been closed.cause - optional exception object that indicates the cause of the close.void onProviderException(ProviderException cause)
cause - the exception object that is being reported to the listener.Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.