Class 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 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 - the JmsSessionInfo for 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.