GigaSpaces XAP 9.7.2 API

org.openspaces.memcached.protocol.text
Class MemcachedResponseEncoder

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelUpstreamHandler
      extended by org.openspaces.memcached.protocol.text.MemcachedResponseEncoder
All Implemented Interfaces:
org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler

public final class MemcachedResponseEncoder
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler

Response encoder for the memcached text protocol. Produces strings destined for the StringEncoder


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Field Summary
static org.jboss.netty.buffer.ChannelBuffer CRLF
           
protected static Log logger
           
 
Constructor Summary
MemcachedResponseEncoder()
           
 
Method Summary
 void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e)
          Handle exceptions in protocol processing.
 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

CRLF

public static final org.jboss.netty.buffer.ChannelBuffer CRLF
Constructor Detail

MemcachedResponseEncoder

public MemcachedResponseEncoder()
Method Detail

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 9.7.2 API

Copyright © GigaSpaces.