- 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 boolean
failAndRecycle(Throwable cause)
Fails the underlyingPromise
with the given cause and recycle this instance.Object
msg()
static PendingWrite
newInstance(Object msg, Promise<Void> promise)
Create a new emptyRecyclableArrayList
instancePromise<Void>
promise()
boolean
recycle()
Clear and recycle this instance.Promise<Void>
recycleAndGet()
Recycle this instance and return thePromise
.boolean
successAndRecycle()
Mark the underlyingPromise
successfully and recycle this instance.
-
-
-
Method Detail
-
newInstance
public static PendingWrite newInstance(Object msg, Promise<Void> promise)
Create a new emptyRecyclableArrayList
instance
-
recycle
public boolean recycle()
Clear and recycle this instance.
-
failAndRecycle
public boolean failAndRecycle(Throwable cause)
Fails the underlyingPromise
with the given cause and recycle this instance.
-
successAndRecycle
public boolean successAndRecycle()
Mark the underlyingPromise
successfully and recycle this instance.
-
msg
public Object msg()
-
-