public final class NioOutboundPipeline extends NioPipeline implements Runnable
| Modifier and Type | Field and Description |
|---|---|
Queue<OutboundFrame> |
urgentWriteQueue |
Queue<OutboundFrame> |
writeQueue |
channel, completedMigrations, LOAD_BALANCING_BYTE, LOAD_BALANCING_FRAME, LOAD_BALANCING_HANDLE, LOAD_TYPE, logger, owner, processCount, selectionKey| Constructor and Description |
|---|
NioOutboundPipeline(NioChannel channel,
NioThread owner,
ChannelErrorHandler errorHandler,
ILogger logger,
IOBalancer balancer,
ChannelInitializer initializer) |
| Modifier and Type | Method and Description |
|---|---|
long |
bytesPending() |
void |
close() |
void |
flush() |
long |
lastWriteTimeMillis() |
long |
load()
Get 'load' recorded by the current pipeline.
|
long |
priorityBytesPending() |
void |
process()
Called when there are bytes available for reading, or space available to write.
|
protected void |
publishMetrics() |
void |
requestMigration(NioThread newOwner)
Requests the MigratablePipeline to move to the new NioThread.
|
void |
run() |
String |
toString() |
int |
totalFramesPending() |
void |
write(OutboundFrame frame) |
getChannel, onFailure, owner, startpublic final Queue<OutboundFrame> writeQueue
public final Queue<OutboundFrame> urgentWriteQueue
public NioOutboundPipeline(NioChannel channel, NioThread owner, ChannelErrorHandler errorHandler, ILogger logger, IOBalancer balancer, ChannelInitializer initializer)
public long load()
MigratablePipelineNioThreadload in interface MigratablePipelinepublic int totalFramesPending()
public long lastWriteTimeMillis()
public long bytesPending()
public long priorityBytesPending()
public void flush()
public void write(OutboundFrame frame)
public void process()
throws Exception
NioPipelineprocess in class NioPipelineExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void requestMigration(NioThread newOwner)
MigratablePipelineIOBalancer.
Call is ignored when pipeline is moving to the same NioThread.requestMigration in interface MigratablePipelinenewOwner - the NioThread that is going to own this MigratablePipelineprotected void publishMetrics()
publishMetrics in class NioPipelineCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.