public final class NioInboundPipeline extends NioPipeline
NioThread receives a read event from the Selector, then the
process() is called to read out the data from the socket into a bytebuffer and hand it over to the
ChannelInboundHandler to get processed.| Modifier and Type | Field and Description |
|---|---|
protected ByteBuffer |
inputBuffer |
channel, completedMigrations, LOAD_BALANCING_BYTE, LOAD_BALANCING_FRAME, LOAD_BALANCING_HANDLE, loadType, logger, owner, processCount, selectionKey| Constructor and Description |
|---|
NioInboundPipeline(NioChannel channel,
NioThread owner,
ChannelErrorHandler errorHandler,
ILogger logger,
IOBalancer balancer,
ChannelInitializer initializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SwCounter |
getNormalFramesReadCounter() |
SwCounter |
getPriorityFramesReadCounter() |
long |
lastReadTimeMillis() |
long |
load()
Get 'load' recorded by the current pipeline.
|
void |
process()
Called when there are bytes available for reading, or space available to write.
|
void |
publishMetrics() |
void |
requestMigration(NioThread newOwner)
Migrates this Pipeline to a new NioThread.
|
String |
toString() |
getChannel, onFailure, owner, startprotected ByteBuffer inputBuffer
public NioInboundPipeline(NioChannel channel, NioThread owner, ChannelErrorHandler errorHandler, ILogger logger, IOBalancer balancer, ChannelInitializer initializer)
public long load()
MigratablePipelineNioThreadpublic SwCounter getNormalFramesReadCounter()
public SwCounter getPriorityFramesReadCounter()
public long lastReadTimeMillis()
public void requestMigration(NioThread newOwner)
newOwner - target NioThread this pipeline migrates topublic void process()
throws Exception
NioPipelineprocess in class NioPipelineExceptionpublic void publishMetrics()
publishMetrics in class NioPipelinepublic void close()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.