GigaSpaces XAP 10.0.1 API

org.openspaces.memcached.protocol.binary
Class MemcachedBinaryResponseEncoder

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelUpstreamHandler
      extended by 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 Class Summary
static class MemcachedBinaryResponseEncoder.ResponseCode
           
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Field Summary
protected static Log logger
           
 
Constructor Summary
MemcachedBinaryResponseEncoder()
           
 
Method Summary
 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)
           
 
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
 

Field Detail

logger

protected static final Log logger
Constructor Detail

MemcachedBinaryResponseEncoder

public MemcachedBinaryResponseEncoder()
Method Detail

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

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.