- java.lang.Object
-
- io.netty5.util.internal.PendingWrite
-
public final class PendingWrite extends Object
Some pending write which should be picked up later.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfailAndRecycle(Throwable cause)Fails the underlyingPromisewith the given cause and recycle this instance.Objectmsg()static PendingWritenewInstance(Object msg, Promise<Void> promise)Create a new emptyRecyclableArrayListinstancePromise<Void>promise()booleanrecycle()Clear and recycle this instance.Promise<Void>recycleAndGet()Recycle this instance and return thePromise.booleansuccessAndRecycle()Mark the underlyingPromisesuccessfully and recycle this instance.
-
-
-
Method Detail
-
newInstance
public static PendingWrite newInstance(Object msg, Promise<Void> promise)
Create a new emptyRecyclableArrayListinstance
-
recycle
public boolean recycle()
Clear and recycle this instance.
-
failAndRecycle
public boolean failAndRecycle(Throwable cause)
Fails the underlyingPromisewith the given cause and recycle this instance.
-
successAndRecycle
public boolean successAndRecycle()
Mark the underlyingPromisesuccessfully and recycle this instance.
-
msg
public Object msg()
-
-