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.
-
Field Summary
Fields inherited from class org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder
endpoint, parent, provider, request, requestTimeoutTask, resource, resourceInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.qpid.proton.engine.SessioncreateEndpoint(JmsSessionInfo resourceInfo) Given the resource information provided create and configure the local endpoint whose open phase is managed by this builder.protected AmqpSessioncreateResource(AmqpConnection parent, JmsSessionInfo resourceInfo, org.apache.qpid.proton.engine.Session endpoint) Create the managed resource instance.protected booleanIf 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.Methods inherited from class org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder
afterClosed, afterOpened, buildResource, createException, getDefaultOpenAbortException, getEndpoint, getOpenAbortExceptionFromRemote, getParent, getRequest, getRequestTimeout, getResource, getResourceInfo, handleClosed, handleOpened, hasRemoteError, isOpenedEndpointValid, processDeliveryUpdates, processFlowUpdates, processRemoteClose, processRemoteDetach, processRemoteOpen
-
Constructor Details
-
AmqpSessionBuilder
-
-
Method Details
-
createEndpoint
Description copied from class:AmqpResourceBuilderGiven the resource information provided create and configure the local endpoint whose open phase is managed by this builder.- Specified by:
createEndpointin classAmqpResourceBuilder<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:AmqpResourceBuilderCreate the managed resource instance.- Specified by:
createResourcein classAmqpResourceBuilder<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:AmqpResourceBuilderIf 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:
isClosePendingin classAmqpResourceBuilder<AmqpSession,AmqpConnection, JmsSessionInfo, org.apache.qpid.proton.engine.Session> - Returns:
- true if the resource state indicates it will be immediately closed.
-