Class PendingWrite

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

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

  • Constructor Details

  • Method Details

    • newInstance

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

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

      public boolean failAndRecycle(java.lang.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 java.lang.Object msg()
    • promise

      public Promise<java.lang.Void> promise()
    • recycleAndGet

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