Class AbstractMemcacheObjectEncoder<M extends MemcacheMessage>

All Implemented Interfaces:
ChannelHandler, ChannelOutboundHandler
Direct Known Subclasses:
AbstractBinaryMemcacheEncoder

@UnstableApi public abstract class AbstractMemcacheObjectEncoder<M extends MemcacheMessage> extends MessageToMessageEncoder<Object>
A general purpose AbstractMemcacheObjectEncoder that encodes MemcacheMessages.

Note that this class is designed to be extended, especially because both the binary and ascii protocol require different treatment of their messages. Since the content chunk writing is the same for both, the encoder abstracts this right away.

  • Field Details

    • expectingMoreContent

      private boolean expectingMoreContent
  • Constructor Details

    • AbstractMemcacheObjectEncoder

      public AbstractMemcacheObjectEncoder()
  • Method Details