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, start
public 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()
MigratablePipeline
NioThread
load
in interface MigratablePipeline
public int totalFramesPending()
public long lastWriteTimeMillis()
public long bytesPending()
public long priorityBytesPending()
public void flush()
public void write(OutboundFrame frame)
public void process() throws Exception
NioPipeline
process
in class NioPipeline
Exception
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void requestMigration(NioThread newOwner)
MigratablePipeline
IOBalancer
.
Call is ignored when pipeline is moving to the same NioThread.requestMigration
in interface MigratablePipeline
newOwner
- the NioThread that is going to own this MigratablePipelineprotected void publishMetrics()
publishMetrics
in class NioPipeline
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.