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.
  • 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 - the JmsSessionInfo for the Session to create.
      session - the Proton session instance that this resource wraps.
  • Method Details

    • 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: AmqpResourceParent
      Adds the given resource as a child of this resource so that it's lifetime becomes managed by that of its parent.
      Specified by:
      addChildResource in interface AmqpResourceParent
      Overrides:
      addChildResource in class AmqpSession
      Parameters:
      resource - The AmqpResource that is a child of this one.
    • handleResourceClosure

      public void handleResourceClosure(AmqpProvider provider, ProviderException cause)
      Overrides:
      handleResourceClosure in class AmqpSession