Class AmqpSessionBuilder

java.lang.Object
org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder<AmqpSession,AmqpConnection,JmsSessionInfo,org.apache.qpid.proton.engine.Session>
org.apache.qpid.jms.provider.amqp.builders.AmqpSessionBuilder
All Implemented Interfaces:
AmqpEventSink, AmqpExceptionBuilder
Direct Known Subclasses:
AmqpConnectionSessionBuilder

public class AmqpSessionBuilder extends AmqpResourceBuilder<AmqpSession,AmqpConnection,JmsSessionInfo,org.apache.qpid.proton.engine.Session>
Resource builder responsible for creating and opening an AmqpSession instance.
  • Constructor Details

  • Method Details

    • createEndpoint

      protected org.apache.qpid.proton.engine.Session createEndpoint(JmsSessionInfo resourceInfo)
      Description copied from class: AmqpResourceBuilder
      Given the resource information provided create and configure the local endpoint whose open phase is managed by this builder.
      Specified by:
      createEndpoint in class AmqpResourceBuilder<AmqpSession,AmqpConnection,JmsSessionInfo,org.apache.qpid.proton.engine.Session>
      Returns:
      a new endpoint to be managed.
    • 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.