Class MemcachedDecoder

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    @Deprecated
    public class MemcachedDecoder
    extends io.netty.handler.codec.ReplayingDecoder<MemcachedDecoderState>
    Deprecated.
    since 10.1. Will be removed unless a binary protocol encoder/decoder is implemented.
    A Memcached protocol specific decoder
    Since:
    4.1
    Author:
    Galder ZamarreƱo
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.netty.handler.codec.ByteToMessageDecoder

        io.netty.handler.codec.ByteToMessageDecoder.Cumulator
      • Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

        io.netty.channel.ChannelHandler.Sharable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.infinispan.configuration.cache.Configuration cacheConfiguration
      Deprecated.
       
      protected org.infinispan.server.memcached.RequestHeader header
      Deprecated.
       
      protected Predicate<? super String> ignoreCache
      Deprecated.
       
      protected byte[] key
      Deprecated.
       
      protected org.infinispan.server.memcached.MemcachedParameters params
      Deprecated.
       
      protected byte[] rawValue
      Deprecated.
       
      protected org.infinispan.server.core.transport.NettyTransport transport
      Deprecated.
       
      • Fields inherited from class io.netty.handler.codec.ByteToMessageDecoder

        COMPOSITE_CUMULATOR, MERGE_CUMULATOR
    • Constructor Summary

      Constructors 
      Constructor Description
      MemcachedDecoder​(org.infinispan.AdvancedCache<byte[],​byte[]> memcachedCache, ScheduledExecutorService scheduler, org.infinispan.server.core.transport.NettyTransport transport, Predicate<? super String> ignoreCache, org.infinispan.commons.dataconversion.MediaType valuePayload)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected void customDecodeKey​(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer)
      Deprecated.
       
      protected void customDecodeValue​(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer)
      Deprecated.
       
      protected void decode​(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, List<Object> out)
      Deprecated.
       
      void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
      Deprecated.
       
      protected Object get​(io.netty.buffer.ByteBuf buffer)
      Deprecated.
       
      protected Object remove()
      Deprecated.
       
      protected Object replace()
      Deprecated.
       
      protected Object replaceIfUnmodified()
      Deprecated.
       
      protected Object writeResponse​(io.netty.channel.Channel ch, Object response)
      Deprecated.
       
      • Methods inherited from class io.netty.handler.codec.ReplayingDecoder

        callDecode, checkpoint, checkpoint, state, state
      • Methods inherited from class io.netty.handler.codec.ByteToMessageDecoder

        actualReadableBytes, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
      • Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

        channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged
      • Methods inherited from class io.netty.channel.ChannelHandlerAdapter

        ensureNotSharable, handlerAdded, isSharable
      • Methods inherited from interface io.netty.channel.ChannelHandler

        handlerAdded
    • Field Detail

      • transport

        protected final org.infinispan.server.core.transport.NettyTransport transport
        Deprecated.
      • ignoreCache

        protected final Predicate<? super String> ignoreCache
        Deprecated.
      • key

        protected byte[] key
        Deprecated.
      • rawValue

        protected byte[] rawValue
        Deprecated.
      • cacheConfiguration

        protected org.infinispan.configuration.cache.Configuration cacheConfiguration
        Deprecated.
      • params

        protected org.infinispan.server.memcached.MemcachedParameters params
        Deprecated.
      • header

        protected org.infinispan.server.memcached.RequestHeader header
        Deprecated.
    • Constructor Detail

      • MemcachedDecoder

        public MemcachedDecoder​(org.infinispan.AdvancedCache<byte[],​byte[]> memcachedCache,
                                ScheduledExecutorService scheduler,
                                org.infinispan.server.core.transport.NettyTransport transport,
                                Predicate<? super String> ignoreCache,
                                org.infinispan.commons.dataconversion.MediaType valuePayload)
        Deprecated.
    • Method Detail

      • decode

        protected void decode​(io.netty.channel.ChannelHandlerContext ctx,
                              io.netty.buffer.ByteBuf in,
                              List<Object> out)
                       throws Exception
        Deprecated.
        Specified by:
        decode in class io.netty.handler.codec.ByteToMessageDecoder
        Throws:
        Exception
      • replace

        protected Object replace()
        Deprecated.
      • replaceIfUnmodified

        protected Object replaceIfUnmodified()
        Deprecated.
      • exceptionCaught

        public void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx,
                                    Throwable cause)
        Deprecated.
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelHandler
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter
      • customDecodeKey

        protected void customDecodeKey​(io.netty.channel.ChannelHandlerContext ctx,
                                       io.netty.buffer.ByteBuf buffer)
                                throws IOException
        Deprecated.
        Throws:
        IOException
      • remove

        protected Object remove()
        Deprecated.
      • writeResponse

        protected Object writeResponse​(io.netty.channel.Channel ch,
                                       Object response)
        Deprecated.