Class AmqpConnection

    • Method Detail

      • getConnectionCapabilitiesOffered

        protected org.apache.qpid.proton.amqp.Symbol[] getConnectionCapabilitiesOffered()
        Load and return a []Symbol that contains the connection capabilities offered to new connections
        Returns:
        the capabilities that are offered to new clients on connect.
      • getConnetionProperties

        protected Map<org.apache.qpid.proton.amqp.Symbol,​Object> getConnetionProperties()
        Load and return a Map that contains the properties that this connection supplies to incoming connections.
        Returns:
        the properties that are offered to the incoming connection.
      • getFailedConnetionProperties

        protected Map<org.apache.qpid.proton.amqp.Symbol,​Object> getFailedConnetionProperties()
        Load and return a Map that contains the properties that this connection supplies to incoming connections when the open has failed and the remote should expect a close to follow.
        Returns:
        the properties that are offered to the incoming connection.
      • getConfiguredReceiverCredit

        public int getConfiguredReceiverCredit()
        Returns:
        the amount of credit assigned to AMQP receiver links created from sender links on the remote peer.
      • getConnectionId

        public org.apache.activemq.command.ConnectionId getConnectionId()
        Returns:
        the ActiveMQ ConnectionId that identifies this AMQP Connection.
      • getClientId

        public String getClientId()
        Returns:
        the Client ID used to create the connection with ActiveMQ
      • getMaxFrameSize

        public long getMaxFrameSize()
        Returns:
        the configured max frame size allowed for incoming messages.
      • onAMQPData

        public void onAMQPData​(Object command)
                        throws Exception
        Description copied from interface: AmqpProtocolConverter
        A new incoming data packet from the remote peer is handed off to the protocol converter for processing. The type can vary and be either an AmqpHeader at the handshake phase or a byte buffer containing the next incoming frame data from the remote.
        Specified by:
        onAMQPData in interface AmqpProtocolConverter
        Parameters:
        command - the next incoming data object from the remote peer.
        Throws:
        Exception - if an error occurs processing the incoming data packet.