com.hazelcast.nio.tcp
public final class ReadHandler extends AbstractSelectionHandler
Connection
.connection, connectionManager, ioSelector, logger, selector, socketChannel
Constructor and Description |
---|
ReadHandler(TcpIpConnection connection,
IOSelector ioSelector) |
Modifier and Type | Method and Description |
---|---|
long |
getEventCount()
Get number of events recorded by the current handler.
|
void |
handle() |
void |
requestMigration(IOSelector newOwner)
Migrates this handler to a new IOSelector thread.
|
void |
start() |
getOwner, getSelectionKey
public ReadHandler(TcpIpConnection connection, IOSelector ioSelector)
public void start()
public long getEventCount()
MigratableHandler
IOSelector
public void requestMigration(IOSelector newOwner)
newOwner
- target IOSelector this handler migrates topublic void handle()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.