Class PushBackContext


  • @Deprecated
    public abstract class PushBackContext
    extends Object
    Deprecated.
    push back logic is deprecated.
    Context being passed when Writer refuses to accept passed WritableMessage due to I/O or memory limitations. User may perform one of the actions proposed by the context: 1) cancel() to cancel message writing 2) retryWhenPossible() to ask Grizzly to write the message once it's possible 3) retryNow() to ask Grizzly to try to write message again (not suggested)
    Since:
    2.2
    Author:
    Alexey Stashok
    • Method Detail

      • size

        public final long size()
        Deprecated.
        Returns the message size.
        Returns:
        the message size.
      • retryWhenPossible

        public abstract void retryWhenPossible()
        Deprecated.
        Instructs Grizzly to send this message once some resources get released.
      • retryNow

        public abstract void retryNow()
        Deprecated.
        Instructs Grizzly to try to resend the message right now.
      • cancel

        public abstract void cancel()
        Deprecated.
        Instructs Grizzly to cancel this message write and release message associated resources.