Class AmqpTemporaryDestinationBuilder
java.lang.Object
org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder<AmqpTemporaryDestination,AmqpSession,JmsTemporaryDestination,org.apache.qpid.proton.engine.Sender>
org.apache.qpid.jms.provider.amqp.builders.AmqpTemporaryDestinationBuilder
- All Implemented Interfaces:
AmqpEventSink,AmqpExceptionBuilder
public class AmqpTemporaryDestinationBuilder
extends AmqpResourceBuilder<AmqpTemporaryDestination,AmqpSession,JmsTemporaryDestination,org.apache.qpid.proton.engine.Sender>
Resource builder responsible for creating and opening an AmqpTemporaryDestination instance.
-
Field Summary
Fields inherited from class org.apache.qpid.jms.provider.amqp.builders.AmqpResourceBuilder
endpoint, parent, provider, request, requestTimeoutTask, resource, resourceInfo -
Constructor Summary
ConstructorsConstructorDescriptionAmqpTemporaryDestinationBuilder(AmqpSession parent, JmsTemporaryDestination resourceInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCalled 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.protected org.apache.qpid.proton.engine.SendercreateEndpoint(JmsTemporaryDestination resourceInfo) Given the resource information provided create and configure the local endpoint whose open phase is managed by this builder.protected AmqpTemporaryDestinationcreateResource(AmqpSession parent, JmsTemporaryDestination resourceInfo, org.apache.qpid.proton.engine.Sender 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, buildResource, createException, getDefaultOpenAbortException, getEndpoint, getOpenAbortExceptionFromRemote, getParent, getRequest, getRequestTimeout, getResource, getResourceInfo, handleClosed, handleOpened, hasRemoteError, isOpenedEndpointValid, processDeliveryUpdates, processFlowUpdates, processRemoteClose, processRemoteDetach, processRemoteOpen
-
Constructor Details
-
AmqpTemporaryDestinationBuilder
-
-
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<AmqpTemporaryDestination,AmqpSession, JmsTemporaryDestination, org.apache.qpid.proton.engine.Sender> - Returns:
- a new endpoint to be managed.
-
createResource
protected AmqpTemporaryDestination createResource(AmqpSession parent, JmsTemporaryDestination resourceInfo, org.apache.qpid.proton.engine.Sender endpoint) Description copied from class:AmqpResourceBuilderCreate the managed resource instance.- Specified by:
createResourcein classAmqpResourceBuilder<AmqpTemporaryDestination,AmqpSession, JmsTemporaryDestination, org.apache.qpid.proton.engine.Sender> - 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<AmqpTemporaryDestination,AmqpSession, JmsTemporaryDestination, org.apache.qpid.proton.engine.Sender> - Returns:
- true if the resource state indicates it will be immediately closed.
-
afterOpened
protected void afterOpened()Description copied from class:AmqpResourceBuilderCalled 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:
afterOpenedin classAmqpResourceBuilder<AmqpTemporaryDestination,AmqpSession, JmsTemporaryDestination, org.apache.qpid.proton.engine.Sender>
-