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, LOAD_TYPE, 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, start
protected ByteBuffer inputBuffer
public NioInboundPipeline(NioChannel channel, NioThread owner, ChannelErrorHandler errorHandler, ILogger logger, IOBalancer balancer, ChannelInitializer initializer)
public long load()
MigratablePipeline
NioThread
public SwCounter getNormalFramesReadCounter()
public SwCounter getPriorityFramesReadCounter()
public long lastReadTimeMillis()
public void requestMigration(NioThread newOwner)
newOwner
- target NioThread this pipeline migrates topublic void process() throws Exception
NioPipeline
process
in class NioPipeline
Exception
public void publishMetrics()
publishMetrics
in class NioPipeline
public void close()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.