Class AMQPConnectionListener

  • All Implemented Interfaces:
    Runnable

    public class AMQPConnectionListener
    extends Daemon
    Listens to the TCP connections.
    • Field Detail

      • logger

        private static final Logger logger
      • AMQP_FRAME_EXTRA_SIZE

        public static final int AMQP_FRAME_EXTRA_SIZE
        The number of bytes that is not used for payload in an AMQP frame: all frames consist of a header (7 octets), a payload of arbitrary size, and a 'frame-end' octet
        See Also:
        Constant Field Values
      • JORAM_AMQP_VERSION

        public static final String JORAM_AMQP_VERSION
        The implementation version of the broker.
      • JORAM_AMQP_LOCALE

        public static final Locale JORAM_AMQP_LOCALE
        The message locale that the server supports. The locale defines the language in which the server will send reply texts.
      • JORAM_AMQP_SECURITY

        public static final String JORAM_AMQP_SECURITY
        The security mechanism that the server supports.
        See Also:
        Constant Field Values
      • JORAM_AMQP_MAX_CHANNELS

        public static int JORAM_AMQP_MAX_CHANNELS
        Specifies highest channel number that the server permits. Usable channel numbers are in the range 1..channelmax. Zero indicates no specified limit.
      • JORAM_AMQP_MAX_FRAME_SIZE

        public static int JORAM_AMQP_MAX_FRAME_SIZE
        The largest frame size that the server proposes for the connection, including frame header and endbyte. The client can negotiate a lower value. Zero means that the server does not impose any specific limit but may reject very large frames if it cannot allocate resources for them.
      • MOM_PROPERTIES

        public static final Map<String,​Object> MOM_PROPERTIES
        This table provides a set of peer properties, used for identification, debugging, and general information.
      • serverSocket

        private volatile ServerSocket serverSocket
        The server socket listening to connections from the AMQP peer.
      • sock

        private Socket sock
        The socket used to listen.
      • sHeartbeat

        private int sHeartbeat
        Heartbeats requested by client and server, in seconds.
      • cHeartbeat

        private int cHeartbeat
      • queueIn

        private Queue queueIn
      • maxBodySize

        private int maxBodySize
      • channelMax

        private int channelMax
      • closing

        volatile boolean closing
    • Constructor Detail

      • AMQPConnectionListener

        public AMQPConnectionListener​(ServerSocket serverSocket,
                                      int heartbeat)
                               throws IOException
        Creates a new connection listener.
        Parameters:
        serverSocket - the server socket to listen to
        heartbeat - the socket timeout delay.
        Throws:
        IOException
        Exception