Class AmqpSessionBuilder

    • Method Detail

      • createResource

        protected AmqpSession createResource​(AmqpConnection parent,
                                             JmsSessionInfo resourceInfo,
                                             org.apache.qpid.proton.engine.Session endpoint)
        Description copied from class: AmqpResourceBuilder
        Create the managed resource instance.
        Specified by:
        createResource in class AmqpResourceBuilder<AmqpSession,​AmqpConnection,​JmsSessionInfo,​org.apache.qpid.proton.engine.Session>
        Parameters:
        parent - The parent of the newly created resource.
        resourceInfo - The resource information used to configure the resource.
        endpoint - The local endpoint for the managed resource to wrap.
        Returns:
        the resource instance who open life-cycle is managed by this builder.
      • isClosePending

        protected boolean isClosePending()
        Description copied from class: AmqpResourceBuilder
        If the resource was opened but its current state indicates a close is pending then we do no need to proceed further into the resource creation process. Each endpoint build must implement this and examine the opened endpoint to determine if a close frame will follow the open.
        Specified by:
        isClosePending in class AmqpResourceBuilder<AmqpSession,​AmqpConnection,​JmsSessionInfo,​org.apache.qpid.proton.engine.Session>
        Returns:
        true if the resource state indicates it will be immediately closed.