public final class NioInboundPipeline extends NioPipeline implements InboundPipeline
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
InboundHandler
to get processed.channel, LOAD_BALANCING_BYTE, LOAD_BALANCING_FRAME, LOAD_BALANCING_HANDLE, loadType, logger, owner, processCount, selectionKey, socketChannel
Modifier and Type | Method and Description |
---|---|
InboundPipeline |
addLast(InboundHandler... addedHandlers)
Adds the handlers at the end of the pipeline.
|
protected Iterable<? extends ChannelHandler> |
handlers()
Returns an Iterable that can iterate over each
ChannelHandler of
the pipeline. |
long |
lastReadTimeMillis() |
long |
load()
Get 'load' recorded by the current pipeline.
|
long |
normalFramesRead() |
long |
priorityFramesRead() |
InboundPipeline |
remove(InboundHandler handler)
Removes the given handler from the pipeline.
|
InboundPipeline |
replace(InboundHandler oldHandler,
InboundHandler... addedHandlers)
Replaces the old InboundHandler by the new ones.
|
String |
toString() |
NioInboundPipeline |
wakeup()
Wakes up the inbound pipeline and lets it to start reading again from the
network.
|
getChannel, onError, owner, requestMigration, run
public long normalFramesRead()
public long priorityFramesRead()
public long load()
MigratablePipeline
NioThread
load
in interface MigratablePipeline
public long lastReadTimeMillis()
protected Iterable<? extends ChannelHandler> handlers()
NioPipeline
ChannelHandler
of
the pipeline.
This method is called only by the NioPipeline.onError(Throwable)
.
handlers
in class NioPipeline
public InboundPipeline remove(InboundHandler handler)
InboundPipeline
remove
in interface InboundPipeline
handler
- the handler to removepublic InboundPipeline addLast(InboundHandler... addedHandlers)
InboundPipeline
addLast
in interface InboundPipeline
addedHandlers
- the handlers to addpublic InboundPipeline replace(InboundHandler oldHandler, InboundHandler... addedHandlers)
InboundPipeline
replace
in interface InboundPipeline
oldHandler
- the handler to replaceaddedHandlers
- the new handlers to insertpublic NioInboundPipeline wakeup()
InboundPipeline
wakeup
in interface InboundPipeline
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.