public final class WriteHandler extends AbstractSelectionHandler implements Runnable
TcpIpConnection.connection, connectionManager, ioSelector, logger, selector, socketChannel| Modifier and Type | Method and Description |
|---|---|
long |
getEventCount()
Get number of events recorded by the current handler.
|
SocketWriter |
getSocketWriter() |
void |
handle() |
void |
offer(SocketWritable packet) |
void |
requestMigration(IOSelector newOwner)
Requests the MigratableHandler to move to the new IOSelector.
|
void |
run() |
void |
shutdown() |
getOwner, getSelectionKeypublic SocketWriter getSocketWriter()
public void offer(SocketWritable packet)
public long getEventCount()
MigratableHandlerIOSelectorgetEventCount in interface MigratableHandlerpublic void handle()
handle in interface SelectionHandlerpublic void shutdown()
public void requestMigration(IOSelector newOwner)
MigratableHandlerIOBalancer.
Call is ignored when handler is moving to the same IOSelector.requestMigration in interface MigratableHandlernewOwner - the IOSelector that is going to own this MigratableHandlerCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.