com.hazelcast.nio.tcp
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, getSelectionKey
public SocketWriter getSocketWriter()
public void offer(SocketWritable packet)
public long getEventCount()
MigratableHandler
IOSelector
getEventCount
in interface MigratableHandler
public void handle()
handle
in interface SelectionHandler
public void shutdown()
public void requestMigration(IOSelector newOwner)
MigratableHandler
IOBalancer
.
Call is ignored when handler is moving to the same IOSelector.requestMigration
in interface MigratableHandler
newOwner
- the IOSelector that is going to own this MigratableHandlerCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.