@ChannelHandler.Sharable
public class MemcachedBinaryResponseEncoder
extends io.netty.channel.ChannelInboundHandlerAdapter
Modifier and Type | Class and Description |
---|---|
static class |
MemcachedBinaryResponseEncoder.ResponseCode |
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
MemcachedBinaryResponseEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
io.netty.buffer.ByteBuf |
constructHeader(MemcachedBinaryCommandDecoder.BinaryOp bcmd,
io.netty.buffer.ByteBuf extrasBuffer,
io.netty.buffer.ByteBuf keyBuffer,
io.netty.buffer.ByteBuf valueBuffer,
short responseCode,
int opaqueValue,
long casUnique) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable e)
Handle exceptions in protocol processing.
|
MemcachedBinaryResponseEncoder.ResponseCode |
getStatusCode(ResponseMessage command) |
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public MemcachedBinaryResponseEncoder.ResponseCode getStatusCode(ResponseMessage command)
public io.netty.buffer.ByteBuf constructHeader(MemcachedBinaryCommandDecoder.BinaryOp bcmd, io.netty.buffer.ByteBuf extrasBuffer, io.netty.buffer.ByteBuf keyBuffer, io.netty.buffer.ByteBuf valueBuffer, short responseCode, int opaqueValue, long casUnique)
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable e)
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Copyright © GigaSpaces.