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
Constructors Constructor Description AmqpTemporaryDestination(AmqpSession session, JmsTemporaryDestination destination, org.apache.qpid.proton.engine.Sender endpoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AmqpConnectiongetConnection()AmqpSessiongetSession()java.lang.StringtoString()-
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 Detail
-
AmqpTemporaryDestination
public AmqpTemporaryDestination(AmqpSession session, JmsTemporaryDestination destination, org.apache.qpid.proton.engine.Sender endpoint)
-
-
Method Detail
-
getConnection
public AmqpConnection getConnection()
-
getSession
public AmqpSession getSession()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-