Class AMQPConnectionContext

    • Field Detail

      • CONNECTION_OPEN_FAILED

        public static final org.apache.qpid.proton.amqp.Symbol CONNECTION_OPEN_FAILED
    • Method Detail

      • addLinkRemoteCloseListener

        public AMQPConnectionContext addLinkRemoteCloseListener​(String id,
                                                                LinkCloseListener linkCloseListener)
        Adds a listener that will be invoked any time an AMQP link is remotely closed before having been closed on this end of the connection.
        Parameters:
        id - A unique ID assigned to the listener used to later remove it if needed.
        linkCloseListener - The instance of a closed listener.
        Returns:
        this connection context instance.
      • removeLinkRemoteCloseListener

        public void removeLinkRemoteCloseListener​(String id)
        Remove the link remote close listener that is identified by the given ID.
        Parameters:
        id - The unique ID assigned to the listener when it was added.
      • clearLinkRemoteCloseListeners

        public void clearLinkRemoteCloseListeners()
        Clear all link remote close listeners, usually done before connection termination to avoid any remote close events triggering processing after the connection shutdown has already started.
      • isBridgeConnection

        public boolean isBridgeConnection()
      • requireInHandler

        public void requireInHandler()
      • isHandler

        public boolean isHandler()
      • scheduledFlush

        public void scheduledFlush()
      • isIncomingConnection

        public boolean isIncomingConnection()
      • getSecurityAuth

        public org.apache.activemq.artemis.core.security.SecurityAuth getSecurityAuth()
      • getSASLResult

        public SASLResult getSASLResult()
      • inputBuffer

        public void inputBuffer​(io.netty.buffer.ByteBuf buffer)
      • getUser

        public String getUser()
      • getPassword

        public String getPassword()
      • getValidatedUser

        public String getValidatedUser()
      • destroy

        public void destroy()
      • isSyncOnFlush

        public boolean isSyncOnFlush()
      • instantFlush

        public void instantFlush()
      • flush

        public void flush()
      • afterFlush

        public void afterFlush​(Runnable runnable)
      • close

        public void close​(org.apache.qpid.proton.amqp.transport.ErrorCondition errorCondition)
      • runOnPool

        public void runOnPool​(Runnable run)
      • runNow

        public void runNow​(Runnable run)
      • runLater

        public void runLater​(Runnable run)
      • validateConnection

        protected boolean validateConnection​(org.apache.qpid.proton.engine.Connection connection)
      • checkDataReceived

        public boolean checkDataReceived()
      • getCreationTime

        public long getCreationTime()
      • getRemoteContainer

        public String getRemoteContainer()
      • getPubSubPrefix

        public String getPubSubPrefix()
      • remoteLinkOpened

        protected void remoteLinkOpened​(org.apache.qpid.proton.engine.Link link)
                                 throws Exception
        Throws:
        Exception
      • getConnectionCapabilitiesOffered

        public org.apache.qpid.proton.amqp.Symbol[] getConnectionCapabilitiesOffered()
      • open

        public void open()
      • getContainer

        public String getContainer()
      • addEventHandler

        public void addEventHandler​(EventHandler eventHandler)
      • getAmqpLowCredits

        public int getAmqpLowCredits()
      • getAmqpCredits

        public int getAmqpCredits()
      • isUseCoreSubscriptionNaming

        public boolean isUseCoreSubscriptionNaming()
      • onAuthInit

        public void onAuthInit​(ProtonHandler handler,
                               org.apache.qpid.proton.engine.Connection connection,
                               boolean sasl)
        Specified by:
        onAuthInit in interface EventHandler
      • onTransport

        public void onTransport​(org.apache.qpid.proton.engine.Transport transport)
        Specified by:
        onTransport in interface EventHandler
      • pushBytes

        public void pushBytes​(io.netty.buffer.ByteBuf bytes)
        Specified by:
        pushBytes in interface EventHandler
      • onRemoteClose

        public void onRemoteClose​(org.apache.qpid.proton.engine.Connection connection)
        Specified by:
        onRemoteClose in interface EventHandler