public final class PendingWrite extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
failAndRecycle(Throwable cause)
Fails the underlying
Promise with the given cause and recycle this instance. |
Object |
msg() |
static PendingWrite |
newInstance(Object msg,
Promise<Void> promise)
Create a new empty
RecyclableArrayList instance |
Promise<Void> |
promise() |
boolean |
recycle()
Clear and recycle this instance.
|
Promise<Void> |
recycleAndGet()
Recycle this instance and return the
Promise . |
boolean |
successAndRecycle()
Mark the underlying
Promise successfully and recycle this instance. |
public static PendingWrite newInstance(Object msg, Promise<Void> promise)
RecyclableArrayList
instancepublic boolean recycle()
public boolean failAndRecycle(Throwable cause)
Promise
with the given cause and recycle this instance.public boolean successAndRecycle()
Promise
successfully and recycle this instance.public Object msg()
Copyright © 2008–2024 The Netty Project. All rights reserved.