Class AMQPConnectionContext

    • Field Detail

      • CONNECTION_OPEN_FAILED

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

        public static final java.lang.String AMQP_CONTAINER_ID
        See Also:
        Constant Field Values
    • Constructor Detail

      • AMQPConnectionContext

        public AMQPConnectionContext​(ProtonProtocolManager protocolManager,
                                     AMQPConnectionCallback connectionSP,
                                     java.lang.String containerId,
                                     int idleTimeout,
                                     int maxFrameSize,
                                     int channelMax,
                                     boolean useCoreSubscriptionNaming,
                                     java.util.concurrent.ScheduledExecutorService scheduledPool,
                                     boolean isIncomingConnection,
                                     ClientSASLFactory saslClientFactory,
                                     java.util.Map<org.apache.qpid.proton.amqp.Symbol,​java.lang.Object> connectionProperties)
      • AMQPConnectionContext

        public AMQPConnectionContext​(ProtonProtocolManager protocolManager,
                                     AMQPConnectionCallback connectionSP,
                                     java.lang.String containerId,
                                     int idleTimeout,
                                     int maxFrameSize,
                                     int channelMax,
                                     boolean useCoreSubscriptionNaming,
                                     java.util.concurrent.ScheduledExecutorService scheduledPool,
                                     boolean isIncomingConnection,
                                     ClientSASLFactory saslClientFactory,
                                     java.util.Map<org.apache.qpid.proton.amqp.Symbol,​java.lang.Object> connectionProperties,
                                     boolean bridgeConnection)
    • Method Detail

      • isBridgeConnection

        public boolean isBridgeConnection()
      • requireInHandler

        public void requireInHandler()
      • isHandler

        public boolean isHandler()
      • scheduledFlush

        public void scheduledFlush()
      • isIncomingConnection

        public boolean isIncomingConnection()
      • getSessions

        public java.util.Map<org.apache.qpid.proton.engine.Session,​AMQPSessionContext> getSessions()
      • 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 java.lang.String getUser()
      • getPassword

        public java.lang.String getPassword()
      • getValidatedUser

        public java.lang.String getValidatedUser()
      • destroy

        public void destroy()
      • isSyncOnFlush

        public boolean isSyncOnFlush()
      • instantFlush

        public void instantFlush()
      • flush

        public void flush()
      • afterFlush

        public void afterFlush​(java.lang.Runnable runnable)
      • close

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

        public void runOnPool​(java.lang.Runnable run)
      • runNow

        public void runNow​(java.lang.Runnable run)
      • runLater

        public void runLater​(java.lang.Runnable run)
      • validateConnection

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

        public boolean checkDataReceived()
      • getCreationTime

        public long getCreationTime()
      • getRemoteContainer

        public java.lang.String getRemoteContainer()
      • getPubSubPrefix

        public java.lang.String getPubSubPrefix()
      • initInternal

        protected void initInternal()
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • remoteLinkOpened

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

        protected boolean verifyDesiredCapabilities​(org.apache.qpid.proton.engine.Receiver reciever,
                                                    org.apache.qpid.proton.amqp.Symbol s)
      • getConnectionCapabilitiesOffered

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

        public void open()
      • getContainer

        public java.lang.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
      • flowControl

        public boolean flowControl​(org.apache.activemq.artemis.spi.core.remoting.ReadyListener readyListener)
        Specified by:
        flowControl in interface EventHandler
      • onRemoteOpen

        public void onRemoteOpen​(org.apache.qpid.proton.engine.Connection connection)
                          throws java.lang.Exception
        Specified by:
        onRemoteOpen in interface EventHandler
        Throws:
        java.lang.Exception
      • onRemoteClose

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

        public void onLocalOpen​(org.apache.qpid.proton.engine.Session session)
                         throws java.lang.Exception
        Specified by:
        onLocalOpen in interface EventHandler
        Throws:
        java.lang.Exception
      • onRemoteOpen

        public void onRemoteOpen​(org.apache.qpid.proton.engine.Session session)
                          throws java.lang.Exception
        Specified by:
        onRemoteOpen in interface EventHandler
        Throws:
        java.lang.Exception
      • onRemoteClose

        public void onRemoteClose​(org.apache.qpid.proton.engine.Session session)
                           throws java.lang.Exception
        Specified by:
        onRemoteClose in interface EventHandler
        Throws:
        java.lang.Exception
      • onRemoteOpen

        public void onRemoteOpen​(org.apache.qpid.proton.engine.Link link)
                          throws java.lang.Exception
        Specified by:
        onRemoteOpen in interface EventHandler
        Throws:
        java.lang.Exception
      • onFlow

        public void onFlow​(org.apache.qpid.proton.engine.Link link)
                    throws java.lang.Exception
        Specified by:
        onFlow in interface EventHandler
        Throws:
        java.lang.Exception
      • onRemoteClose

        public void onRemoteClose​(org.apache.qpid.proton.engine.Link link)
                           throws java.lang.Exception
        Specified by:
        onRemoteClose in interface EventHandler
        Throws:
        java.lang.Exception
      • onRemoteDetach

        public void onRemoteDetach​(org.apache.qpid.proton.engine.Link link)
                            throws java.lang.Exception
        Specified by:
        onRemoteDetach in interface EventHandler
        Throws:
        java.lang.Exception
      • onLocalDetach

        public void onLocalDetach​(org.apache.qpid.proton.engine.Link link)
                           throws java.lang.Exception
        Specified by:
        onLocalDetach in interface EventHandler
        Throws:
        java.lang.Exception
      • onDelivery

        public void onDelivery​(org.apache.qpid.proton.engine.Delivery delivery)
                        throws java.lang.Exception
        Specified by:
        onDelivery in interface EventHandler
        Throws:
        java.lang.Exception