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.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
ConstructorDescriptionBinaryOpDecoderImpl
(MemcachedServer server) BinaryOpDecoderImpl
(MemcachedServer server, Subject subject) -
Method Summary
Modifier and TypeMethodDescriptionprotected MemcachedResponse
add
(BinaryHeader header, byte[] key, byte[] value, int flags, int expiration, boolean quiet) protected MemcachedResponse
append
(BinaryHeader header, byte[] key, byte[] value, boolean quiet) protected MemcachedResponse
config
(BinaryHeader header, byte[] key) void
protected MemcachedResponse
delete
(BinaryHeader header, byte[] key, boolean quiet) protected MemcachedResponse
failedResponse
(Header header, Throwable t) protected MemcachedResponse
flush
(BinaryHeader header, int expiration, boolean quiet) protected MemcachedResponse
gat
(BinaryHeader header, byte[] key, int expiration, boolean quiet) protected MemcachedResponse
get
(BinaryHeader header, byte[] key, boolean quiet) void
handlerAdded
(io.netty.channel.ChannelHandlerContext ctx) protected MemcachedResponse
increment
(BinaryHeader header, byte[] key, long delta, long initial, int expiration, boolean quiet) protected MemcachedResponse
noop
(BinaryHeader header) protected MemcachedResponse
prepend
(BinaryHeader header, byte[] key, byte[] value, boolean quiet) protected MemcachedResponse
quit
(BinaryHeader header, boolean quiet) protected MemcachedResponse
replace
(BinaryHeader header, byte[] key, byte[] value, int flags, int expiration, boolean quiet) int
protected void
response
(BinaryHeader header, MemcachedStatus status) protected void
response
(BinaryHeader header, MemcachedStatus status, byte[] value) protected void
response
(BinaryHeader header, MemcachedStatus status, byte[] key, byte[] value) protected void
response
(BinaryHeader header, MemcachedStatus status, int flags, byte[] key, byte[] value) protected void
response
(BinaryHeader header, MemcachedStatus status, long number) protected void
response
(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 MemcachedResponse
set
(BinaryHeader header, byte[] key, byte[] value, int flags, int expiration, boolean quiet) protected MemcachedResponse
stat
(BinaryHeader header, byte[] key) protected MemcachedResponse
touch
(BinaryHeader header, byte[] key, int expiration) protected MemcachedResponse
verbosityLevel
(BinaryHeader header, int verbosity) protected MemcachedResponse
version
(BinaryHeader header) 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, handlerRemoved0, 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
-
Constructor Details
-
BinaryOpDecoderImpl
-
BinaryOpDecoderImpl
-
-
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() -
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:
handlerAdded
in interfaceio.netty.channel.ChannelHandler
- Overrides:
handlerAdded
in 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:
failedResponse
in classMemcachedBaseDecoder
-
send
- Specified by:
send
in 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:
send
in classMemcachedBaseDecoder
-