com.thimbleware.jmemcached.protocol.text
Class MemcachedResponseEncoder<CACHE_ELEMENT extends CacheElement>
java.lang.Object
org.jboss.netty.channel.SimpleChannelUpstreamHandler
com.thimbleware.jmemcached.protocol.text.MemcachedResponseEncoder<CACHE_ELEMENT>
- All Implemented Interfaces:
- org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler
public final class MemcachedResponseEncoder<CACHE_ELEMENT extends CacheElement>
- 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
|
|
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 |
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 java.lang.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:
java.lang.Exception
messageReceived
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext channelHandlerContext,
org.jboss.netty.channel.MessageEvent messageEvent)
throws java.lang.Exception
- Overrides:
messageReceived in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
- Throws:
java.lang.Exception
Copyright © 2008-2011 ThimbleWare. All Rights Reserved.