Class TextOpDecoderImpl
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.ByteToMessageDecoder
org.infinispan.server.memcached.MemcachedBaseDecoder
org.infinispan.server.memcached.text.TextOpDecoder
org.infinispan.server.memcached.text.TextOpDecoderImpl
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
-
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 inherited from class org.infinispan.server.memcached.MemcachedBaseDecoder
accessLogging, ANONYMOUS, cache, ctx, current, log, principalName, requestStart, server, statistics, statsEnabled, subject, timeService, versionGenerator
Fields inherited from class io.netty.handler.codec.ByteToMessageDecoder
COMPOSITE_CUMULATOR, MERGE_CUMULATOR
-
Constructor Summary
ConstructorDescriptionTextOpDecoderImpl
(MemcachedServer server) TextOpDecoderImpl
(MemcachedServer server, Subject subject) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected MemcachedResponse
failedResponse
(Header header, Throwable t) void
handlerAdded
(io.netty.channel.ChannelHandlerContext ctx) protected void
handlerRemoved0
(io.netty.channel.ChannelHandlerContext ctx) int
protected MemcachedResponse
send
(Header header, CompletionStage<?> response) protected MemcachedResponse
send
(Header header, CompletionStage<?> response, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener) Methods inherited from class org.infinispan.server.memcached.text.TextOpDecoder
add, cas, concat, delete, flush_all, gat, get, incr, ma, md, me, mg, mn, ms, quit, replace, set, stats, touch, version
Methods inherited from class org.infinispan.server.memcached.MemcachedBaseDecoder
exceptionCaught, metadata, registerExceptionHandler, resumeRead, statsMap, toMillis, touchMetadata
Methods inherited from class io.netty.handler.codec.ByteToMessageDecoder
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Field Details
-
reader
-
-
Constructor Details
-
TextOpDecoderImpl
-
TextOpDecoderImpl
-
-
Method Details
-
decode
public void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buf, List<Object> out) throws Exception - Specified by:
decode
in classio.netty.handler.codec.ByteToMessageDecoder
- Throws:
Exception
-
requestBytes
public int requestBytes() -
handlerAdded
- Specified by:
handlerAdded
in interfaceio.netty.channel.ChannelHandler
- Overrides:
handlerAdded
in classMemcachedBaseDecoder
- Throws:
Exception
-
handlerRemoved0
- Overrides:
handlerRemoved0
in classio.netty.handler.codec.ByteToMessageDecoder
- Throws:
Exception
-
failedResponse
- Specified by:
failedResponse
in classMemcachedBaseDecoder
-
send
- Specified by:
send
in classMemcachedBaseDecoder
-
send
protected MemcachedResponse send(Header header, CompletionStage<?> response, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener) - Specified by:
send
in classMemcachedBaseDecoder
-