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 |
LOAD_BALANCING_BYTE, LOAD_BALANCING_FRAME, LOAD_BALANCING_HANDLE, loadType| 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.
|
String |
toString() |
getChannel, onError, owner, requestMigration, runprotected 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 close()
Copyright © 2018. All Rights Reserved.