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