Class SynchronizedProtocolDecoder

  • All Implemented Interfaces:
    ProtocolDecoder

    public class SynchronizedProtocolDecoder
    extends Object
    implements ProtocolDecoder
    A ProtocolDecoder implementation which decorates an existing decoder to be thread-safe. Please be careful if you're going to use this decorator because it can be a root of performance degradation in a multi-thread environment. Also, by default, appropriate synchronization is done on a per-session basis by ProtocolCodecFilter. Please use this decorator only when you need to synchronize on a per-decoder basis, which is not common.
    Author:
    Apache MINA Project