public final class PendingWrite
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
boolean |
failAndRecycle(java.lang.Throwable cause)
Fails the underlying
Promise with the given cause and recycle this instance. |
java.lang.Object |
msg() |
static PendingWrite |
newInstance(java.lang.Object msg,
Promise<java.lang.Void> promise)
Create a new empty
RecyclableArrayList instance |
Promise<java.lang.Void> |
promise() |
boolean |
recycle()
Clear and recycle this instance.
|
Promise<java.lang.Void> |
recycleAndGet()
Recycle this instance and return the
Promise . |
boolean |
successAndRecycle()
Mark the underlying
Promise successfully and recycle this instance. |
public static PendingWrite newInstance(java.lang.Object msg, Promise<java.lang.Void> promise)
RecyclableArrayList
instancepublic boolean recycle()
public boolean failAndRecycle(java.lang.Throwable cause)
Promise
with the given cause and recycle this instance.public boolean successAndRecycle()
Promise
successfully and recycle this instance.public java.lang.Object msg()
public Promise<java.lang.Void> promise()