Class PendingWrite
java.lang.Object
io.netty.util.internal.PendingWrite
Some pending write which should be picked up later.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanfailAndRecycle(Throwable cause) Fails the underlyingPromisewith the given cause and recycle this instance.msg()static PendingWritenewInstance(Object msg, Promise<Void> promise) Create a new emptyRecyclableArrayListinstancepromise()booleanrecycle()Clear and recycle this instance.Recycle this instance and return thePromise.booleanMark the underlyingPromisesuccessfully and recycle this instance.
-
Method Details
-
newInstance
Create a new emptyRecyclableArrayListinstance -
recycle
public boolean recycle()Clear and recycle this instance. -
failAndRecycle
-
successAndRecycle
public boolean successAndRecycle()Mark the underlyingPromisesuccessfully and recycle this instance. -
msg
-
promise
-
recycleAndGet
-