Top Inners Fields Constructors Methods
io.netty.channel

pack-priv abstract Class PendingBytesTracker

extends Object
implements Handle
Class Inheritance
All Implemented Interfaces
io.netty.channel.MessageSizeEstimator.Handle
Known Direct Subclasses
io.netty.channel.PendingBytesTracker.DefaultChannelPipelinePendingBytesTracker, io.netty.channel.PendingBytesTracker.ChannelOutboundBufferPendingBytesTracker, io.netty.channel.PendingBytesTracker.NoopPendingBytesTracker
Imports
io.netty.util.internal.ObjectUtil

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private final MessageSizeEstimator.Handle

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public abstract void
public abstract void
pack-priv static PendingBytesTracker
public final int
size(Object
The message for which the size should be calculated
msg
)

Implements io.netty.channel.MessageSizeEstimator.Handle.size.

Calculate the size of the given message.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

estimatorHandleback to summary
private final MessageSizeEstimator.Handle estimatorHandle

Constructor Detail

PendingBytesTrackerback to summary
private PendingBytesTracker(MessageSizeEstimator.Handle estimatorHandle)

Method Detail

decrementPendingOutboundBytesback to summary
public abstract void decrementPendingOutboundBytes(long bytes)
incrementPendingOutboundBytesback to summary
public abstract void incrementPendingOutboundBytes(long bytes)
newTrackerback to summary
pack-priv static PendingBytesTracker newTracker(Channel channel)
sizeback to summary
public final int size(Object msg)

Implements io.netty.channel.MessageSizeEstimator.Handle.size.

Doc from io.netty.channel.MessageSizeEstimator.Handle.size.

Calculate the size of the given message.

Parameters
msg:Object

The message for which the size should be calculated

Returns:int

size The size in bytes. The returned size must be >= 0

Annotations
@Override
io.netty.channel back to summary

private final Class PendingBytesTracker.ChannelOutboundBufferPendingBytesTracker

extends PendingBytesTracker
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final ChannelOutboundBuffer

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public void
Inherited from io.netty.channel.PendingBytesTracker:
newTrackersize

Field Detail

bufferback to summary
private final ChannelOutboundBuffer buffer

Constructor Detail

ChannelOutboundBufferPendingBytesTrackerback to summary
pack-priv ChannelOutboundBufferPendingBytesTracker(ChannelOutboundBuffer buffer, MessageSizeEstimator.Handle estimatorHandle)

Method Detail

decrementPendingOutboundBytesback to summary
public void decrementPendingOutboundBytes(long bytes)

Implements abstract io.netty.channel.PendingBytesTracker.decrementPendingOutboundBytes.

Annotations
@Override
incrementPendingOutboundBytesback to summary
public void incrementPendingOutboundBytes(long bytes)

Implements abstract io.netty.channel.PendingBytesTracker.incrementPendingOutboundBytes.

Annotations
@Override
io.netty.channel back to summary

private final Class PendingBytesTracker.DefaultChannelPipelinePendingBytesTracker

extends PendingBytesTracker
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final DefaultChannelPipeline

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public void
Inherited from io.netty.channel.PendingBytesTracker:
newTrackersize

Field Detail

pipelineback to summary
private final DefaultChannelPipeline pipeline

Constructor Detail

DefaultChannelPipelinePendingBytesTrackerback to summary
pack-priv DefaultChannelPipelinePendingBytesTracker(DefaultChannelPipeline pipeline)

Method Detail

decrementPendingOutboundBytesback to summary
public void decrementPendingOutboundBytes(long bytes)

Implements abstract io.netty.channel.PendingBytesTracker.decrementPendingOutboundBytes.

Annotations
@Override
incrementPendingOutboundBytesback to summary
public void incrementPendingOutboundBytes(long bytes)

Implements abstract io.netty.channel.PendingBytesTracker.incrementPendingOutboundBytes.

Annotations
@Override
io.netty.channel back to summary

private final Class PendingBytesTracker.NoopPendingBytesTracker

extends PendingBytesTracker
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public void
Inherited from io.netty.channel.PendingBytesTracker:
newTrackersize

Constructor Detail

NoopPendingBytesTrackerback to summary
pack-priv NoopPendingBytesTracker(MessageSizeEstimator.Handle estimatorHandle)

Method Detail

decrementPendingOutboundBytesback to summary
public void decrementPendingOutboundBytes(long bytes)

Implements abstract io.netty.channel.PendingBytesTracker.decrementPendingOutboundBytes.

Annotations
@Override
incrementPendingOutboundBytesback to summary
public void incrementPendingOutboundBytes(long bytes)

Implements abstract io.netty.channel.PendingBytesTracker.incrementPendingOutboundBytes.

Annotations
@Override