com.hazelcast.nio.tcp
Class ReadHandler

java.lang.Object
  extended by com.hazelcast.nio.tcp.AbstractSelectionHandler
      extended by com.hazelcast.nio.tcp.ReadHandler
All Implemented Interfaces:
MigratableHandler, SelectionHandler

public final class ReadHandler
extends AbstractSelectionHandler

The reading side of the Connection.


Field Summary
 
Fields inherited from class com.hazelcast.nio.tcp.AbstractSelectionHandler
connection, connectionManager, ioSelector, logger, selector, socketChannel
 
Constructor Summary
ReadHandler(TcpIpConnection connection, IOSelector ioSelector)
           
 
Method Summary
 long getEventCount()
          Get number of events recorded by the current handler.
 void handle()
           
 void start()
           
 
Methods inherited from class com.hazelcast.nio.tcp.AbstractSelectionHandler
getOwner, getSelectionKey, migrate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadHandler

public ReadHandler(TcpIpConnection connection,
                   IOSelector ioSelector)
Method Detail

start

public void start()

getEventCount

public long getEventCount()
Description copied from interface: MigratableHandler
Get number of events recorded by the current handler. It can be used to calculate whether this handler should be migrated to a different IOSelector

Returns:
total number of events recorded by this handler

handle

public void handle()


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