org.openspaces.memcached.protocol.binary
Class MemcachedBinaryResponseEncoder
java.lang.Object
  
org.jboss.netty.channel.SimpleChannelUpstreamHandler
      
org.openspaces.memcached.protocol.binary.MemcachedBinaryResponseEncoder
- All Implemented Interfaces: 
 - org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler
 
@ChannelHandler.Sharable
public class MemcachedBinaryResponseEncoder
- extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
 
 
| Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler | 
org.jboss.netty.channel.ChannelHandler.Sharable | 
 
 
 
 
| Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler | 
channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeComplete | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
logger
protected static final Log logger
MemcachedBinaryResponseEncoder
public MemcachedBinaryResponseEncoder()
getStatusCode
public MemcachedBinaryResponseEncoder.ResponseCode getStatusCode(ResponseMessage command)
 
constructHeader
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)
 
exceptionCaught
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
                            org.jboss.netty.channel.ExceptionEvent e)
                     throws Exception
- Handle exceptions in protocol processing. Exceptions are either client or internal errors.  Report accordingly.
- Overrides:
 exceptionCaught in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
 
- Parameters:
 ctx - e - 
- Throws:
 Exception
 
 
messageReceived
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext channelHandlerContext,
                            org.jboss.netty.channel.MessageEvent messageEvent)
                     throws Exception
- Overrides:
 messageReceived in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
 
- Throws:
 Exception
 
Copyright © GigaSpaces.