Class AbstractChannelHandlerContext.WriteTask
java.lang.Object
io.netty.channel.AbstractChannelHandlerContext.WriteTask
- All Implemented Interfaces:
Runnable
- Enclosing class:
AbstractChannelHandlerContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AbstractChannelHandlerContextprivate static final booleanprivate final ObjectPool.Handle<AbstractChannelHandlerContext.WriteTask> private Objectprivate ChannelPromiseprivate static final ObjectPool<AbstractChannelHandlerContext.WriteTask> private intprivate static final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateWriteTask(ObjectPool.Handle<? extends AbstractChannelHandlerContext.WriteTask> handle) -
Method Summary
Modifier and TypeMethodDescription(package private) voidcancel()private voidprotected static voidinit(AbstractChannelHandlerContext.WriteTask task, AbstractChannelHandlerContext ctx, Object msg, ChannelPromise promise, boolean flush) (package private) static AbstractChannelHandlerContext.WriteTasknewInstance(AbstractChannelHandlerContext ctx, Object msg, ChannelPromise promise, boolean flush) private voidrecycle()voidrun()
-
Field Details
-
RECYCLER
-
ESTIMATE_TASK_SIZE_ON_SUBMIT
private static final boolean ESTIMATE_TASK_SIZE_ON_SUBMIT -
WRITE_TASK_OVERHEAD
private static final int WRITE_TASK_OVERHEAD -
handle
-
ctx
-
msg
-
promise
-
size
private int size
-
-
Constructor Details
-
WriteTask
-
-
Method Details
-
newInstance
static AbstractChannelHandlerContext.WriteTask newInstance(AbstractChannelHandlerContext ctx, Object msg, ChannelPromise promise, boolean flush) -
init
protected static void init(AbstractChannelHandlerContext.WriteTask task, AbstractChannelHandlerContext ctx, Object msg, ChannelPromise promise, boolean flush) -
run
-
cancel
void cancel() -
decrementPendingOutboundBytes
private void decrementPendingOutboundBytes() -
recycle
private void recycle()
-