Class AmqpConnectionSession
- java.lang.Object
-
- org.apache.qpid.jms.provider.amqp.AmqpAbstractResource<JmsSessionInfo,org.apache.qpid.proton.engine.Session>
-
- org.apache.qpid.jms.provider.amqp.AmqpSession
-
- org.apache.qpid.jms.provider.amqp.AmqpConnectionSession
-
- All Implemented Interfaces:
AmqpEventSink,AmqpResource,AmqpResourceParent
public class AmqpConnectionSession extends AmqpSession
Subclass of the standard session object used solely by AmqpConnection to aid in managing connection resources that require a persistent session.
-
-
Field Summary
-
Fields inherited from class org.apache.qpid.jms.provider.amqp.AmqpAbstractResource
closeRequest, closeTimeoutTask
-
-
Constructor Summary
Constructors Constructor Description AmqpConnectionSession(AmqpConnection connection, JmsSessionInfo info, org.apache.qpid.proton.engine.Session session)Create a new instance of a Connection owned Session object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChildResource(AmqpResource resource)Adds the given resource as a child of this resource so that it's lifetime becomes managed by that of its parent.voidhandleResourceClosure(AmqpProvider provider, ProviderException cause)voidunsubscribe(String subscriptionName, boolean hasClientID, AsyncResult request)Used to remove an existing durable topic subscription from the remote broker.-
Methods inherited from class org.apache.qpid.jms.provider.amqp.AmqpSession
acknowledge, begin, commit, createConsumer, createProducer, getConnection, getConsumer, getProducer, getProvider, getSessionId, getTransactionContext, isTransactionInDoubt, recover, removeChildResource, reportError, rollback, schedule, toString
-
Methods inherited from class org.apache.qpid.jms.provider.amqp.AmqpAbstractResource
close, closeOrDetachEndpoint, closeResource, getEndpoint, getLocalState, getParent, getRemoteState, getResourceInfo, isAwaitingClose, isClosed, isOpen, processDeliveryUpdates, processFlowUpdates, processRemoteClose, processRemoteDetach, processRemoteOpen
-
-
-
-
Constructor Detail
-
AmqpConnectionSession
public AmqpConnectionSession(AmqpConnection connection, JmsSessionInfo info, org.apache.qpid.proton.engine.Session session)
Create a new instance of a Connection owned Session object.- Parameters:
connection- the connection that owns this session.info- theJmsSessionInfofor the Session to create.session- the Proton session instance that this resource wraps.
-
-
Method Detail
-
unsubscribe
public void unsubscribe(String subscriptionName, boolean hasClientID, AsyncResult request)
Used to remove an existing durable topic subscription from the remote broker.- Parameters:
subscriptionName- the subscription name that is to be removed.hasClientID- whether the connection has a clientID set.request- the request that awaits the completion of this action.
-
addChildResource
public void addChildResource(AmqpResource resource)
Description copied from interface:AmqpResourceParentAdds the given resource as a child of this resource so that it's lifetime becomes managed by that of its parent.- Specified by:
addChildResourcein interfaceAmqpResourceParent- Overrides:
addChildResourcein classAmqpSession- Parameters:
resource- The AmqpResource that is a child of this one.
-
handleResourceClosure
public void handleResourceClosure(AmqpProvider provider, ProviderException cause)
- Overrides:
handleResourceClosurein classAmqpSession
-
-