Package org.infinispan.server.memcached
Class MemcachedDecoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.handler.codec.ByteToMessageDecoder
-
- io.netty.handler.codec.ReplayingDecoder<MemcachedDecoderState>
-
- org.infinispan.server.memcached.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
-
-
Field Summary
Fields Modifier and Type Field Description protected org.infinispan.configuration.cache.ConfigurationcacheConfigurationDeprecated.protected org.infinispan.server.memcached.RequestHeaderheaderDeprecated.protected Predicate<? super String>ignoreCacheDeprecated.protected byte[]keyDeprecated.protected org.infinispan.server.memcached.MemcachedParametersparamsDeprecated.protected byte[]rawValueDeprecated.protected org.infinispan.server.core.transport.NettyTransporttransportDeprecated.
-
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 voidcustomDecodeKey(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer)Deprecated.protected voidcustomDecodeValue(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer)Deprecated.protected voiddecode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, List<Object> out)Deprecated.voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)Deprecated.protected Objectget(io.netty.buffer.ByteBuf buffer)Deprecated.protected Objectremove()Deprecated.protected Objectreplace()Deprecated.protected ObjectreplaceIfUnmodified()Deprecated.protected ObjectwriteResponse(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
-
-
-
-
Field Detail
-
transport
protected final org.infinispan.server.core.transport.NettyTransport transport
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 ExceptionDeprecated.- Specified by:
decodein classio.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:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
get
protected Object get(io.netty.buffer.ByteBuf buffer) throws StreamCorruptedException
Deprecated.- Throws:
StreamCorruptedException
-
customDecodeKey
protected void customDecodeKey(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer) throws IOExceptionDeprecated.- Throws:
IOException
-
customDecodeValue
protected void customDecodeValue(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buffer) throws StreamCorruptedExceptionDeprecated.- Throws:
StreamCorruptedException
-
remove
protected Object remove()
Deprecated.
-
-