@ChannelHandler.Sharable
public class MemcachedBinaryResponseEncoder
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
Modifier and Type | Class and Description |
---|---|
static class |
MemcachedBinaryResponseEncoder.ResponseCode |
Constructor and Description |
---|
MemcachedBinaryResponseEncoder() |
Modifier and Type | Method and Description |
---|---|
org.jboss.netty.buffer.ChannelBuffer |
constructHeader(MemcachedBinaryCommandDecoder.BinaryOp bcmd,
org.jboss.netty.buffer.ChannelBuffer extrasBuffer,
org.jboss.netty.buffer.ChannelBuffer keyBuffer,
org.jboss.netty.buffer.ChannelBuffer valueBuffer,
short responseCode,
int opaqueValue,
long casUnique) |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
Handle exceptions in protocol processing.
|
MemcachedBinaryResponseEncoder.ResponseCode |
getStatusCode(ResponseMessage command) |
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext channelHandlerContext,
org.jboss.netty.channel.MessageEvent messageEvent) |
protected static final Log logger
public MemcachedBinaryResponseEncoder.ResponseCode getStatusCode(ResponseMessage command)
public org.jboss.netty.buffer.ChannelBuffer constructHeader(MemcachedBinaryCommandDecoder.BinaryOp bcmd, org.jboss.netty.buffer.ChannelBuffer extrasBuffer, org.jboss.netty.buffer.ChannelBuffer keyBuffer, org.jboss.netty.buffer.ChannelBuffer valueBuffer, short responseCode, int opaqueValue, long casUnique)
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e) throws Exception
exceptionCaught
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
ctx
- e
- Exception
Copyright © GigaSpaces.