com.thimbleware.jmemcached.protocol.text
Class MemcachedCommandDecoder
java.lang.Object
org.jboss.netty.channel.SimpleChannelUpstreamHandler
org.jboss.netty.handler.codec.frame.FrameDecoder
com.thimbleware.jmemcached.protocol.text.MemcachedCommandDecoder
- All Implemented Interfaces:
- org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler
public final class MemcachedCommandDecoder
- extends org.jboss.netty.handler.codec.frame.FrameDecoder
The MemcachedCommandDecoder is responsible for taking lines from the MemcachedFrameDecoder and parsing them
into CommandMessage instances for handling by the MemcachedCommandHandler
Protocol status is held in the SessionStatus instance which is shared between each of the decoders in the pipeline.
| Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler |
org.jboss.netty.channel.ChannelHandler.Sharable |
|
Method Summary |
protected java.lang.Object |
decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer)
|
| Methods inherited from class org.jboss.netty.handler.codec.frame.FrameDecoder |
channelClosed, channelDisconnected, decodeLast, exceptionCaught, messageReceived |
| Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler |
channelBound, channelConnected, 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 |
MemcachedCommandDecoder
public MemcachedCommandDecoder(SessionStatus status)
decode
protected java.lang.Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer)
throws java.lang.Exception
- Specified by:
decode in class org.jboss.netty.handler.codec.frame.FrameDecoder
- Throws:
java.lang.Exception
Copyright © 2008-2011 ThimbleWare. All Rights Reserved.