Class AmqpTemporaryDestination
java.lang.Object
org.apache.qpid.jms.provider.amqp.AmqpAbstractResource<JmsTemporaryDestination,org.apache.qpid.proton.engine.Sender>
org.apache.qpid.jms.provider.amqp.AmqpTemporaryDestination
- All Implemented Interfaces:
AmqpEventSink,AmqpResource
public class AmqpTemporaryDestination
extends AmqpAbstractResource<JmsTemporaryDestination,org.apache.qpid.proton.engine.Sender>
Manages a Temporary Destination linked to a given Connection.
In order to create a temporary destination and keep it active for the life of the connection
we must create a sender with a dynamic target value. Once the sender is open we can read
the actual name assigned by the broker from the target and that is the real temporary
destination that we will return.
The open of the Sender instance will also allow us to catch any security errors from
the broker in the case where the user does not have authorization to access temporary
destinations.
-
Field Summary
Fields inherited from class org.apache.qpid.jms.provider.amqp.AmqpAbstractResource
closeRequest, closeTimeoutTask -
Constructor Summary
ConstructorsConstructorDescriptionAmqpTemporaryDestination(AmqpSession session, JmsTemporaryDestination destination, org.apache.qpid.proton.engine.Sender endpoint) -
Method Summary
Methods inherited from class org.apache.qpid.jms.provider.amqp.AmqpAbstractResource
close, closeOrDetachEndpoint, closeResource, getEndpoint, getLocalState, getParent, getRemoteState, getResourceInfo, handleResourceClosure, isAwaitingClose, isClosed, isOpen, processDeliveryUpdates, processFlowUpdates, processRemoteClose, processRemoteDetach, processRemoteOpen
-
Constructor Details
-
AmqpTemporaryDestination
public AmqpTemporaryDestination(AmqpSession session, JmsTemporaryDestination destination, org.apache.qpid.proton.engine.Sender endpoint)
-
-
Method Details