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 int |
loadType |
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, waitload, requestMigrationprotected static final int LOAD_BALANCING_HANDLE
protected static final int LOAD_BALANCING_BYTE
protected static final int LOAD_BALANCING_FRAME
protected final int loadType
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()
MigratablePipelineIOBalancer can decide to migrate
a pipeline to another owner.owner in interface MigratablePipelinepublic void start()
protected abstract void publishMetrics()
public abstract void process()
throws Exception
ExceptionCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.