| Package | Description |
|---|---|
| org.apache.qpid.jms |
The core AMQP JMS client implementation classes.
|
| org.apache.qpid.jms.provider | |
| org.apache.qpid.jms.provider.amqp | |
| org.apache.qpid.jms.provider.amqp.builders | |
| org.apache.qpid.jms.provider.exceptions | |
| org.apache.qpid.jms.provider.failover |
| Modifier and Type | Method and Description |
|---|---|
void |
JmsConnection.onConnectionFailure(ProviderException ex) |
void |
JmsConnection.onFailedMessageSend(JmsOutboundMessageDispatch envelope,
ProviderException cause) |
void |
JmsConnection.onProviderException(ProviderException cause) |
void |
JmsConnection.onResourceClosed(JmsResource resource,
ProviderException cause) |
protected void |
JmsConnection.providerFailed(ProviderException cause) |
| Modifier and Type | Field and Description |
|---|---|
protected ProviderException |
ProviderFuture.error |
| Modifier and Type | Method and Description |
|---|---|
void |
ProviderListener.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 |
DefaultProviderListener.onConnectionFailure(ProviderException ex) |
void |
ProviderWrapper.onConnectionFailure(ProviderException ex) |
void |
ProviderListener.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 |
DefaultProviderListener.onFailedMessageSend(JmsOutboundMessageDispatch envelope,
ProviderException cause) |
void |
ProviderWrapper.onFailedMessageSend(JmsOutboundMessageDispatch envelope,
ProviderException cause) |
void |
WrappedAsyncResult.onFailure(ProviderException result) |
void |
NoOpAsyncResult.onFailure(ProviderException result) |
void |
ProviderFuture.onFailure(ProviderException result) |
void |
AsyncResult.onFailure(ProviderException result)
If the operation fails this method is invoked with the Exception
that caused the failure.
|
void |
ProviderSynchronization.onPendingFailure(ProviderException cause) |
void |
ProviderListener.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 |
DefaultProviderListener.onProviderException(ProviderException cause) |
void |
ProviderWrapper.onProviderException(ProviderException cause) |
void |
ProviderListener.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 |
DefaultProviderListener.onResourceClosed(JmsResource resource,
ProviderException cause) |
void |
ProviderWrapper.onResourceClosed(JmsResource resource,
ProviderException cause) |
| Modifier and Type | Method and Description |
|---|---|
void |
Provider.acknowledge(JmsInboundMessageDispatch envelope,
ProviderConstants.ACK_TYPE ackType,
AsyncResult request)
Called to acknowledge a JmsMessage has been delivered, consumed, re-delivered...etc.
|
void |
ProviderWrapper.acknowledge(JmsInboundMessageDispatch envelope,
ProviderConstants.ACK_TYPE ackType,
AsyncResult request) |
void |
Provider.acknowledge(JmsSessionId sessionId,
ProviderConstants.ACK_TYPE ackType,
AsyncResult request)
Called to acknowledge all messages that have been delivered in a given session.
|
void |
ProviderWrapper.acknowledge(JmsSessionId sessionId,
ProviderConstants.ACK_TYPE ackType,
AsyncResult request) |
void |
Provider.commit(JmsTransactionInfo transactionInfo,
JmsTransactionInfo nextTransactionInfo,
AsyncResult request)
Called to commit an open transaction, and start a new one if a new transaction info
object is provided.
|
void |
ProviderWrapper.commit(JmsTransactionInfo transactionInfo,
JmsTransactionInfo nextTransactionInfo,
AsyncResult request) |
void |
Provider.connect(JmsConnectionInfo connectionInfo)
Performs the initial low level connection for this provider such as TCP or
SSL connection to a remote Broker.
|
void |
ProviderWrapper.connect(JmsConnectionInfo connectionInfo) |
void |
Provider.create(JmsResource resource,
AsyncResult request)
Create the Provider version of the given JmsResource.
|
void |
ProviderWrapper.create(JmsResource resource,
AsyncResult request) |
void |
Provider.destroy(JmsResource resource,
AsyncResult request)
Instruct the Provider to dispose of a given JmsResource.
|
void |
ProviderWrapper.destroy(JmsResource resourceId,
AsyncResult request) |
protected void |
ProviderFuture.failOnError() |
void |
Provider.pull(JmsConsumerId consumerId,
long timeout,
AsyncResult request)
Request a remote peer send a Message to this client.
|
void |
ProviderWrapper.pull(JmsConsumerId consumerId,
long timeout,
AsyncResult request) |
void |
Provider.recover(JmsSessionId sessionId,
AsyncResult request)
Called to recover all unacknowledged messages for a Session in client Ack mode.
|
void |
ProviderWrapper.recover(JmsSessionId sessionId,
AsyncResult request) |
void |
Provider.rollback(JmsTransactionInfo transactionInfo,
JmsTransactionInfo nextTransactionInfo,
AsyncResult request)
Called to roll back an open transaction, and start a new one if a new transaction info
object is provided.
|
void |
ProviderWrapper.rollback(JmsTransactionInfo transactionInfo,
JmsTransactionInfo nextTransactionInfo,
AsyncResult request) |
void |
Provider.send(JmsOutboundMessageDispatch envelope,
AsyncResult request)
Sends the JmsMessage contained in the outbound dispatch envelope.
|
void |
ProviderWrapper.send(JmsOutboundMessageDispatch envelope,
AsyncResult request) |
void |
Provider.start()
Starts the Provider.
|
void |
ProviderWrapper.start() |
void |
Provider.start(JmsResource resource,
AsyncResult request)
Starts the Provider version of the given JmsResource.
|
void |
ProviderWrapper.start(JmsResource resource,
AsyncResult request) |
void |
Provider.stop(JmsResource resource,
AsyncResult request)
Stops (pauses) the Provider version of the given JmsResource, the resource would then
need to be started again via a call to
start()
For some JMS Resources it is necessary or advantageous to have a stopped state that
can be triggered to stop the resource generating new events or messages. |
void |
ProviderWrapper.stop(JmsResource resource,
AsyncResult request) |
void |
BalancedProviderFuture.sync() |
void |
ProgressiveProviderFuture.sync() |
abstract void |
ProviderFuture.sync()
Waits for a response to some Provider requested operation.
|
void |
ConservativeProviderFuture.sync() |
boolean |
BalancedProviderFuture.sync(long amount,
TimeUnit unit) |
boolean |
ProgressiveProviderFuture.sync(long amount,
TimeUnit unit) |
abstract boolean |
ProviderFuture.sync(long amount,
TimeUnit unit)
Timed wait for a response to a Provider operation.
|
boolean |
ConservativeProviderFuture.sync(long amount,
TimeUnit unit) |
void |
Provider.unsubscribe(String subscription,
AsyncResult request)
Remove a durable topic subscription by name.
|
void |
ProviderWrapper.unsubscribe(String subscription,
AsyncResult request) |
| Modifier and Type | Method and Description |
|---|---|
static ProviderException |
AmqpSupport.convertToNonFatalException(AmqpProvider provider,
org.apache.qpid.proton.engine.Endpoint endpoint,
org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition)
Given an ErrorCondition instance create a new Exception that best matches
the error type that indicates a non-fatal error usually at the link level
such as link closed remotely or link create failed due to security access
issues.
|
ProviderException |
AmqpExceptionBuilder.createException()
Creates an exception appropriate to some failure condition
|
| Modifier and Type | Method and Description |
|---|---|
void |
AmqpTransactionCoordinator.closeResource(AmqpProvider provider,
ProviderException cause,
boolean localClose) |
void |
AmqpAbstractResource.closeResource(AmqpProvider provider,
ProviderException cause,
boolean remotelyClosed) |
void |
AmqpFixedProducer.handleResourceClosure(AmqpProvider provider,
ProviderException error) |
void |
AmqpSession.handleResourceClosure(AmqpProvider provider,
ProviderException error) |
void |
AmqpConnectionSession.handleResourceClosure(AmqpProvider provider,
ProviderException cause) |
void |
AmqpConsumer.handleResourceClosure(AmqpProvider provider,
ProviderException cause) |
void |
AmqpAbstractResource.handleResourceClosure(AmqpProvider provider,
ProviderException error) |
void |
AmqpConnection.handleResourceClosure(AmqpProvider provider,
ProviderException cause) |
void |
AmqpTransactionContext.DischargeCompletion.onDeclareFailure(ProviderException failure) |
void |
AmqpTransactionContext.DischargeCompletion.onDischargeFailure(ProviderException failure) |
void |
AmqpTransactionContext.DischargeCompletion.onFailure(ProviderException result) |
void |
AmqpSession.reportError(ProviderException error)
Call to send an error that occurs outside of the normal asynchronous processing
of a session resource such as a remote close etc.
|
ScheduledFuture<?> |
AmqpProvider.scheduleRequestTimeout(AsyncResult request,
long timeout,
ProviderException error)
Allows a resource to request that its parent resource schedule a future
cancellation of a request and return it a
Future instance that
can be used to cancel the scheduled automatic failure of the request. |
| Modifier and Type | Method and Description |
|---|---|
void |
AmqpProvider.acknowledge(JmsInboundMessageDispatch envelope,
ProviderConstants.ACK_TYPE ackType,
AsyncResult request) |
void |
AmqpProvider.acknowledge(JmsSessionId sessionId,
ProviderConstants.ACK_TYPE ackType,
AsyncResult request) |
void |
AmqpTransactionContext.begin(JmsTransactionId txId,
AsyncResult request) |
void |
AmqpTransactionContext.commit(JmsTransactionInfo transactionInfo,
JmsTransactionInfo nextTransactionInfo,
AsyncResult request) |
void |
AmqpProvider.commit(JmsTransactionInfo transactionInfo,
JmsTransactionInfo nextTransactionId,
AsyncResult request) |
void |
AmqpProvider.connect(JmsConnectionInfo connectionInfo) |
void |
AmqpProvider.create(JmsResource resource,
AsyncResult request) |
void |
AmqpTransactionCoordinator.declare(JmsTransactionId txId,
AsyncResult request) |
void |
AmqpProvider.destroy(JmsResource resource,
AsyncResult request) |
void |
AmqpTransactionCoordinator.discharge(JmsTransactionId txId,
AmqpTransactionContext.DischargeCompletion request) |
void |
AmqpTransactionCoordinator.processDeliveryUpdates(AmqpProvider provider,
org.apache.qpid.proton.engine.Delivery delivery) |
void |
AmqpFixedProducer.processDeliveryUpdates(AmqpProvider provider,
org.apache.qpid.proton.engine.Delivery delivery) |
void |
AmqpEventSink.processDeliveryUpdates(AmqpProvider provider,
org.apache.qpid.proton.engine.Delivery delivery)
Called when the Proton Engine signals an Delivery related event has been triggered
for the given endpoint.
|
void |
AmqpConsumer.processDeliveryUpdates(AmqpProvider provider,
org.apache.qpid.proton.engine.Delivery delivery) |
void |
AmqpAbstractResource.processDeliveryUpdates(AmqpProvider provider,
org.apache.qpid.proton.engine.Delivery delivery) |
void |
AmqpFixedProducer.processFlowUpdates(AmqpProvider provider) |
void |
AmqpEventSink.processFlowUpdates(AmqpProvider provider)
Called when the Proton Engine signals an Flow related event has been triggered
for the given endpoint.
|
void |
AmqpConsumer.processFlowUpdates(AmqpProvider provider) |
void |
AmqpAbstractResource.processFlowUpdates(AmqpProvider provider) |
void |
AmqpEventSink.processRemoteClose(AmqpProvider provider)
Event handler for remote peer close of this resource.
|
void |
AmqpAbstractResource.processRemoteClose(AmqpProvider provider) |
void |
AmqpConnection.processRemoteClose(AmqpProvider provider) |
void |
AmqpEventSink.processRemoteDetach(AmqpProvider provider)
Event handler for remote peer detach of this resource.
|
void |
AmqpAbstractResource.processRemoteDetach(AmqpProvider provider) |
void |
AmqpEventSink.processRemoteOpen(AmqpProvider provider)
Event handler for remote peer open of this resource.
|
void |
AmqpAbstractResource.processRemoteOpen(AmqpProvider provider) |
void |
AmqpProvider.pull(JmsConsumerId consumerId,
long timeout,
AsyncResult request) |
void |
AmqpProvider.recover(JmsSessionId sessionId,
AsyncResult request) |
void |
AmqpTransactionContext.rollback(JmsTransactionInfo transactionInfo,
JmsTransactionInfo nextTransactionInfo,
AsyncResult request) |
void |
AmqpProvider.rollback(JmsTransactionInfo transactionInfo,
JmsTransactionInfo nextTransactionId,
AsyncResult request) |
void |
AmqpFixedProducer.send(JmsOutboundMessageDispatch envelope,
AsyncResult request) |
abstract void |
AmqpProducer.send(JmsOutboundMessageDispatch envelope,
AsyncResult request)
Sends the given message
|
void |
AmqpProvider.send(JmsOutboundMessageDispatch envelope,
AsyncResult request) |
void |
AmqpAnonymousFallbackProducer.send(JmsOutboundMessageDispatch envelope,
AsyncResult request) |
void |
AmqpProvider.start() |
void |
AmqpProvider.start(JmsResource resource,
AsyncResult request) |
void |
AmqpProvider.stop(JmsResource resource,
AsyncResult request) |
void |
AmqpProvider.unsubscribe(String subscription,
AsyncResult request) |
| Modifier and Type | Method and Description |
|---|---|
ProviderException |
AmqpResourceBuilder.createException() |
protected ProviderException |
AmqpProducerBuilder.getDefaultOpenAbortException() |
protected ProviderException |
AmqpResourceBuilder.getDefaultOpenAbortException()
When aborting the open operation, and there isn't an error condition,
provided by the peer, the returned exception will be used instead.
|
protected ProviderException |
AmqpConnectionBuilder.getDefaultOpenAbortException() |
protected ProviderException |
AmqpConsumerBuilder.getDefaultOpenAbortException() |
protected ProviderException |
AmqpResourceBuilder.getOpenAbortExceptionFromRemote()
When aborting the open operation, this method will attempt to create an
appropriate exception from the remote error condition if one is set and will
revert to creating the default variant if not.
|
protected ProviderException |
AmqpConnectionBuilder.getOpenAbortExceptionFromRemote() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AmqpResourceBuilder.handleClosed(AmqpProvider provider,
ProviderException cause) |
| Modifier and Type | Method and Description |
|---|---|
void |
AmqpResourceBuilder.processDeliveryUpdates(AmqpProvider provider,
org.apache.qpid.proton.engine.Delivery delivery) |
void |
AmqpResourceBuilder.processFlowUpdates(AmqpProvider provider) |
void |
AmqpResourceBuilder.processRemoteClose(AmqpProvider provider) |
void |
AmqpResourceBuilder.processRemoteDetach(AmqpProvider provider) |
void |
AmqpResourceBuilder.processRemoteOpen(AmqpProvider provider) |
| Modifier and Type | Class and Description |
|---|---|
class |
ProviderClosedException |
class |
ProviderConnectionRedirectedException
IOException derivative that defines that the remote peer has requested that this
connection be redirected to some alternative peer. |
class |
ProviderConnectionRemotelyClosedException |
class |
ProviderConnectionResourceAllocationException |
class |
ProviderConnectionResourceNotFoundException |
class |
ProviderConnectionSecurityException
Connection level Security Exception used to indicate a security violation has occurred.
|
class |
ProviderConnectionSecuritySaslException
Security Exception used to indicate a security violation has occurred.
|
class |
ProviderDeliveryModifiedException
Thrown when a send fails because the remote modified the delivery
|
class |
ProviderDeliveryReleasedException
Thrown when a send fails because the remote released the delivery
|
class |
ProviderFailedException |
class |
ProviderIdleTimeoutException
Thrown when the Provider fails a connection due to idle timeout.
|
class |
ProviderIllegalStateException |
class |
ProviderInvalidClientIDException |
class |
ProviderInvalidDestinationException |
class |
ProviderIOException
Exception type that is thrown when the provider has encountered an unrecoverable error.
|
class |
ProviderOperationTimedOutException
Indicates that an operation in the provider timed out waiting for completion
|
class |
ProviderResourceAllocationException |
class |
ProviderResourceClosedException |
class |
ProviderResourceNotFoundException |
class |
ProviderSecurityException
Security Exception used to indicate a security violation has occurred that is non-fatal
such as link creation blocked because user does not have access etc.
|
class |
ProviderSendTimedOutException
Thrown when a message send operation times out in the Provider layer.
|
class |
ProviderTransactionInDoubtException
Thrown when a transaction operation fails and state is now unknown.
|
class |
ProviderTransactionRolledBackException
Thrown when a message send operation times out in the Provider layer.
|
class |
ProviderUnsupportedOperationException
Thrown when an action request is not supported through this provider.
|
| Modifier and Type | Method and Description |
|---|---|
static ProviderException |
ProviderExceptionSupport.createNonFatalOrPassthrough(Throwable cause)
Checks the given cause to determine if it's already an ProviderException type and
if not creates a new ProviderException to wrap it.
|
| Modifier and Type | Method and Description |
|---|---|
protected ProviderException |
FailoverProvider.FailoverRequest.createOfflineFailureException(ProviderException error) |
protected ProviderException |
FailoverProvider.FailoverRequest.createTimedOutException() |
| Modifier and Type | Method and Description |
|---|---|
protected ProviderException |
FailoverProvider.FailoverRequest.createOfflineFailureException(ProviderException error) |
void |
FailoverProvider.onConnectionFailure(ProviderException ex) |
void |
FailoverProvider.onFailedMessageSend(JmsOutboundMessageDispatch envelope,
ProviderException cause) |
void |
FailoverProvider.FailoverRequest.onFailure(ProviderException error) |
void |
FailoverProvider.CreateConnectionRequest.onFailure(ProviderException result) |
void |
FailoverProvider.onProviderException(ProviderException ex) |
void |
FailoverProvider.onResourceClosed(JmsResource resource,
ProviderException cause) |
| Modifier and Type | Method and Description |
|---|---|
void |
FailoverProvider.acknowledge(JmsInboundMessageDispatch envelope,
ProviderConstants.ACK_TYPE ackType,
AsyncResult request) |
void |
FailoverProvider.acknowledge(JmsSessionId sessionId,
ProviderConstants.ACK_TYPE ackType,
AsyncResult request) |
protected void |
FailoverProvider.checkClosed() |
void |
FailoverProvider.commit(JmsTransactionInfo transactionInfo,
JmsTransactionInfo nextTransactionInfo,
AsyncResult request) |
void |
FailoverProvider.connect(JmsConnectionInfo connectionInfo) |
void |
FailoverProvider.create(JmsResource resource,
AsyncResult request) |
void |
FailoverProvider.destroy(JmsResource resourceId,
AsyncResult request) |
abstract void |
FailoverProvider.FailoverRequest.doTask(Provider provider)
Called to execute the specific task that was requested.
|
void |
FailoverProvider.pull(JmsConsumerId consumerId,
long timeout,
AsyncResult request) |
void |
FailoverProvider.recover(JmsSessionId sessionId,
AsyncResult request) |
void |
FailoverProvider.rollback(JmsTransactionInfo transactionInfo,
JmsTransactionInfo nextTransactionInfo,
AsyncResult request) |
void |
FailoverProvider.send(JmsOutboundMessageDispatch envelope,
AsyncResult request) |
void |
FailoverProvider.start() |
void |
FailoverProvider.start(JmsResource resource,
AsyncResult request) |
void |
FailoverProvider.stop(JmsResource resource,
AsyncResult request) |
void |
FailoverProvider.unsubscribe(String subscription,
AsyncResult request) |
Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.