Class AmqpClosedConnectionBuilder

All Implemented Interfaces:
AmqpEventSink, AmqpExceptionBuilder

public class AmqpClosedConnectionBuilder extends AmqpConnectionBuilder
Specialized Builder that create a Connection that is intended to be immediately closed.
  • Constructor Details

  • Method Details

    • createRequestIntercepter

      protected AsyncResult createRequestIntercepter(AsyncResult request)
      Overrides:
      createRequestIntercepter in class AmqpConnectionBuilder
    • afterOpened

      protected void afterOpened()
      Description copied from class: AmqpResourceBuilder
      Called once an endpoint has been opened and validated to give the subclasses a place to perform any follow-on processing or setup steps before the operation is deemed to have been completed and success is signaled.
      Overrides:
      afterOpened in class AmqpConnectionBuilder
    • afterClosed

      protected void afterClosed(AmqpConnection resource, JmsConnectionInfo resourceInfo)
      Description copied from class: AmqpResourceBuilder
      Called if endpoint opening process fails in order to give the subclasses a place to perform any follow-on processing or teardown steps before the operation is deemed to have been completed and failure is signalled.
      Overrides:
      afterClosed in class AmqpResourceBuilder<AmqpConnection,AmqpProvider,JmsConnectionInfo,org.apache.qpid.proton.engine.Connection>
      Parameters:
      resource - the resource
      resourceInfo - the resourceInfo
    • 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.
      Overrides:
      isClosePending in class AmqpConnectionBuilder
      Returns:
      true if the resource state indicates it will be immediately closed.