Class AMQDecoder<T extends MethodProcessor>

  • Direct Known Subclasses:
    ServerDecoder

    public abstract class AMQDecoder<T extends MethodProcessor>
    extends Object
    AMQDecoder delegates the decoding of AMQP either to a data block decoder, or in the case of new connections, to a protocol initiation decoder. It is a cumulative decoder, which means that it can accumulate data to decode in the buffer until there is enough data to decode.

    One instance of this class is created per session, so any changes or configuration done at run time to the decoder will only affect decoding of the protocol session data to which is it bound.

    TODO If protocol initiation decoder not needed, then don't create it. Probably not a big deal, but it adds to the per-session overhead.