Class AmqpAbstractResource<R extends JmsResource,​E extends org.apache.qpid.proton.engine.Endpoint>

    • Constructor Detail

      • AmqpAbstractResource

        public AmqpAbstractResource​(R resourceInfo,
                                    E endpoint)
        Creates a new instance with the JmsResource provided, and sets the Endpoint to the given value.
        Parameters:
        resourceInfo - The JmsResource instance that this AmqpResource is managing.
        endpoint - The Proton Endpoint instance that this object maps to.
      • AmqpAbstractResource

        public AmqpAbstractResource​(R resourceInfo,
                                    E endpoint,
                                    AmqpResourceParent parent)
        Creates a new instance with the JmsResource provided, and sets the Endpoint to the given value.
        Parameters:
        resourceInfo - The JmsResource instance that this AmqpResource is managing.
        endpoint - The Proton Endpoint instance that this object maps to.
        parent - The parent of this resource (null if no parent).
    • Method Detail

      • closeOrDetachEndpoint

        protected void closeOrDetachEndpoint()
        Perform the close operation on the managed endpoint. A subclass may override this method to alter the standard close path such as endpoint detach etc.
      • getEndpoint

        public E getEndpoint()
      • getResourceInfo

        public R getResourceInfo()
      • isOpen

        public boolean isOpen()
      • isClosed

        public boolean isClosed()
      • isAwaitingClose

        public boolean isAwaitingClose()
      • getLocalState

        public org.apache.qpid.proton.engine.EndpointState getLocalState()
      • getRemoteState

        public org.apache.qpid.proton.engine.EndpointState getRemoteState()
      • processDeliveryUpdates

        public void processDeliveryUpdates​(AmqpProvider provider,
                                           org.apache.qpid.proton.engine.Delivery delivery)
                                    throws ProviderException
        Description copied from interface: AmqpEventSink
        Called when the Proton Engine signals an Delivery related event has been triggered for the given endpoint.
        Specified by:
        processDeliveryUpdates in interface AmqpEventSink
        Parameters:
        provider - the AmqpProvider instance for easier access to fire events.
        delivery - the Delivery that has an update to its state which needs handled.
        Throws:
        ProviderException - if an error occurs while processing the update.
      • processFlowUpdates

        public void processFlowUpdates​(AmqpProvider provider)
                                throws ProviderException
        Description copied from interface: AmqpEventSink
        Called when the Proton Engine signals an Flow related event has been triggered for the given endpoint.
        Specified by:
        processFlowUpdates in interface AmqpEventSink
        Parameters:
        provider - the AmqpProvider instance for easier access to fire events.
        Throws:
        ProviderException - if an error occurs while processing the update.