com.hazelcast.nio.tcp
Class DefaultPacketReader

java.lang.Object
  extended by com.hazelcast.nio.tcp.DefaultPacketReader
All Implemented Interfaces:
PacketReader

public class DefaultPacketReader
extends Object
implements PacketReader


Field Summary
protected  TcpIpConnection connection
           
protected  IOService ioService
           
protected  Packet packet
           
 
Constructor Summary
DefaultPacketReader(TcpIpConnection connection, IOService ioService)
           
 
Method Summary
protected  void handleBind(Packet packet)
           
protected  void handlePacket(Packet packet)
           
protected  Packet obtainPacket()
           
 void readPacket(ByteBuffer inBuffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

protected final TcpIpConnection connection

ioService

protected final IOService ioService

packet

protected Packet packet
Constructor Detail

DefaultPacketReader

public DefaultPacketReader(TcpIpConnection connection,
                           IOService ioService)
Method Detail

readPacket

public void readPacket(ByteBuffer inBuffer)
                throws Exception
Specified by:
readPacket in interface PacketReader
Throws:
Exception

handlePacket

protected void handlePacket(Packet packet)

handleBind

protected void handleBind(Packet packet)

obtainPacket

protected Packet obtainPacket()


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.