Class PendingWrite

java.lang.Object
io.netty.util.internal.PendingWrite

public final class PendingWrite extends Object
Some pending write which should be picked up later.
  • Method Details

    • newInstance

      public static PendingWrite newInstance(Object msg, Promise<Void> promise)
      Create a new empty RecyclableArrayList instance
    • recycle

      public boolean recycle()
      Clear and recycle this instance.
    • failAndRecycle

      public boolean failAndRecycle(Throwable cause)
      Fails the underlying Promise with the given cause and recycle this instance.
    • successAndRecycle

      public boolean successAndRecycle()
      Mark the underlying Promise successfully and recycle this instance.
    • msg

      public Object msg()
    • promise

      public Promise<Void> promise()
    • recycleAndGet

      public Promise<Void> recycleAndGet()
      Recycle this instance and return the Promise.