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
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
ConstructorsConstructorDescriptionAmqpConnectionSession(AmqpConnection connection, JmsSessionInfo info, org.apache.qpid.proton.engine.Session session) Create a new instance of a Connection owned Session object. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildResource(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, toStringMethods 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 Details
-
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 Details
-
unsubscribe
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
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
- Overrides:
handleResourceClosurein classAmqpSession
-