org.infinispan.client.hotrod.impl.transport.netty
Class HotrodClientDecoder
java.lang.Object
org.jboss.netty.channel.SimpleChannelUpstreamHandler
org.jboss.netty.handler.codec.frame.FrameDecoder
org.infinispan.client.hotrod.impl.transport.netty.HotrodClientDecoder
- All Implemented Interfaces:
- org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler
public class HotrodClientDecoder
- extends org.jboss.netty.handler.codec.frame.FrameDecoder
// TODO: Document this
- Since:
- 4.1
- Author:
- Mircea.Markus@jboss.com
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler |
org.jboss.netty.channel.ChannelHandler.Sharable |
Method Summary |
protected Object |
decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer)
|
void |
fillBuffer(byte[] bufferToFill)
|
short |
readByte()
|
int |
readVInt()
|
long |
readVLong()
|
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 |
HotrodClientDecoder
public HotrodClientDecoder()
decode
protected Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer)
throws Exception
- Specified by:
decode
in class org.jboss.netty.handler.codec.frame.FrameDecoder
- Throws:
Exception
readVLong
public long readVLong()
readVInt
public int readVInt()
fillBuffer
public void fillBuffer(byte[] bufferToFill)
readByte
public short readByte()
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.