org.openspaces.memcached.protocol.text
Class MemcachedResponseEncoder
java.lang.Object
org.jboss.netty.channel.SimpleChannelUpstreamHandler
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 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
|
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 |
logger
protected static final Log logger
CRLF
public static final org.jboss.netty.buffer.ChannelBuffer CRLF
MemcachedResponseEncoder
public MemcachedResponseEncoder()
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.