Class BinaryOpDecoderImpl
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.binary.BinaryOpDecoderImpl
- 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.CumulatorNested 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, maxContentLength, posBefore, principalName, requestStart, server, statistics, statsEnabled, subject, timeService, versionGeneratorFields inherited from class io.netty.handler.codec.ByteToMessageDecoder
COMPOSITE_CUMULATOR, MERGE_CUMULATOR -
Constructor Summary
ConstructorsConstructorDescriptionBinaryOpDecoderImpl(MemcachedServer server) BinaryOpDecoderImpl(MemcachedServer server, Subject subject) -
Method Summary
Modifier and TypeMethodDescriptionprotected MemcachedResponseadd(BinaryHeader header, byte[] key, byte[] value, int flags, int expiration, boolean quiet) protected MemcachedResponseappend(BinaryHeader header, byte[] key, byte[] value, boolean quiet) protected MemcachedResponseconfig(BinaryHeader header, byte[] key) voidprotected MemcachedResponsedelete(BinaryHeader header, byte[] key, boolean quiet) protected MemcachedResponsefailedResponse(Header header, Throwable t) protected MemcachedResponseflush(BinaryHeader header, int expiration, boolean quiet) protected MemcachedResponsegat(BinaryHeader header, byte[] key, int expiration, boolean quiet) protected MemcachedResponseget(BinaryHeader header, byte[] key, boolean quiet) voidhandlerAdded(io.netty.channel.ChannelHandlerContext ctx) protected MemcachedResponseincrement(BinaryHeader header, byte[] key, long delta, long initial, int expiration, boolean quiet) protected MemcachedResponsenoop(BinaryHeader header) protected MemcachedResponseprepend(BinaryHeader header, byte[] key, byte[] value, boolean quiet) protected MemcachedResponsequit(BinaryHeader header, boolean quiet) protected MemcachedResponsereplace(BinaryHeader header, byte[] key, byte[] value, int flags, int expiration, boolean quiet) intprotected voidresponse(BinaryHeader header, MemcachedStatus status) protected voidresponse(BinaryHeader header, MemcachedStatus status, byte[] value) protected voidresponse(BinaryHeader header, MemcachedStatus status, byte[] key, byte[] value) protected voidresponse(BinaryHeader header, MemcachedStatus status, int flags, byte[] key, byte[] value) protected voidresponse(BinaryHeader header, MemcachedStatus status, long number) protected voidresponse(BinaryHeader header, MemcachedStatus status, Throwable t) send(Header header, CompletionStage<?> response) send(Header header, CompletionStage<?> response, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener) protected MemcachedResponseset(BinaryHeader header, byte[] key, byte[] value, int flags, int expiration, boolean quiet) protected MemcachedResponsestat(BinaryHeader header, byte[] key) protected MemcachedResponsetouch(BinaryHeader header, byte[] key, int expiration) protected MemcachedResponseverbosityLevel(BinaryHeader header, int verbosity) protected MemcachedResponseversion(BinaryHeader header) Methods inherited from class org.infinispan.server.memcached.MemcachedBaseDecoder
bytesAvailable, exceptionCaught, metadata, registerExceptionHandler, resumeRead, statsMap, toMillis, touchMetadataMethods inherited from class io.netty.handler.codec.ByteToMessageDecoder
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Constructor Details
-
BinaryOpDecoderImpl
-
BinaryOpDecoderImpl
-
-
Method Details
-
decode
-
requestBytes
public int requestBytes() -
get
-
set
protected MemcachedResponse set(BinaryHeader header, byte[] key, byte[] value, int flags, int expiration, boolean quiet) -
add
protected MemcachedResponse add(BinaryHeader header, byte[] key, byte[] value, int flags, int expiration, boolean quiet) -
replace
protected MemcachedResponse replace(BinaryHeader header, byte[] key, byte[] value, int flags, int expiration, boolean quiet) -
delete
-
increment
protected MemcachedResponse increment(BinaryHeader header, byte[] key, long delta, long initial, int expiration, boolean quiet) -
append
-
prepend
-
quit
-
version
-
noop
-
touch
-
gat
-
stat
-
flush
-
verbosityLevel
-
acquireHeader
-
handlerAdded
- Specified by:
handlerAddedin interfaceio.netty.channel.ChannelHandler- Overrides:
handlerAddedin classMemcachedBaseDecoder- Throws:
Exception
-
config
-
response
-
response
-
response
-
response
protected void response(BinaryHeader header, MemcachedStatus status, int flags, byte[] key, byte[] value) -
response
-
response
-
failedResponse
- Specified by:
failedResponsein classMemcachedBaseDecoder
-
send
- Specified by:
sendin classMemcachedBaseDecoder
-
send
public MemcachedResponse send(Header header, CompletionStage<?> response, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener) - Specified by:
sendin classMemcachedBaseDecoder
-