public abstract class NioPipeline extends Object implements MigratablePipeline, Closeable
Modifier and Type | Field and Description |
---|---|
protected Channel |
channel |
protected SwCounter |
completedMigrations |
protected static int |
LOAD_BALANCING_BYTE |
protected static int |
LOAD_BALANCING_FRAME |
protected static int |
LOAD_BALANCING_HANDLE |
protected static int |
LOAD_TYPE |
protected ILogger |
logger |
protected NioThread |
owner |
protected SwCounter |
processCount |
protected SelectionKey |
selectionKey |
Modifier and Type | Method and Description |
---|---|
Channel |
getChannel() |
void |
onFailure(Throwable e)
Is called when the
process() throws an exception. |
NioThread |
owner()
Get NioThread currently owning this pipeline.
|
abstract void |
process()
Called when there are bytes available for reading, or space available to write.
|
protected abstract void |
publishMetrics() |
void |
start() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
load, requestMigration
protected static final int LOAD_BALANCING_HANDLE
protected static final int LOAD_BALANCING_BYTE
protected static final int LOAD_BALANCING_FRAME
protected static final int LOAD_TYPE
protected final SwCounter processCount
protected final SwCounter completedMigrations
protected final ILogger logger
protected final Channel channel
protected NioThread owner
protected SelectionKey selectionKey
public Channel getChannel()
public NioThread owner()
MigratablePipeline
IOBalancer
can decide to migrate
a pipeline to another owner.owner
in interface MigratablePipeline
public void start()
protected abstract void publishMetrics()
public abstract void process() throws Exception
Exception
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.