java.lang.Object
org.glassfish.grizzly.asyncqueue.PushBackContext
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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
cancel()
Deprecated.Instructs Grizzly to cancel this message write and release message associated resources.Deprecated.ThePushBackHandler
passed along with one of theWriter
's write(...) method call.abstract void
retryNow()
Deprecated.Instructs Grizzly to try to resend the message right now.abstract void
Deprecated.Instructs Grizzly to send this message once some resources get released.final long
size()
Deprecated.Returns the message size.
-
Field Details
-
queueRecord
Deprecated.
-
-
Constructor Details
-
PushBackContext
Deprecated.
-
-
Method Details
-
getPushBackHandler
Deprecated.ThePushBackHandler
passed along with one of theWriter
's write(...) method call.- Returns:
PushBackHandler
passed along with write(...) call.
-
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.
-