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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcancel()Deprecated.Instructs Grizzly to cancel this message write and release message associated resources.Deprecated.ThePushBackHandlerpassed along with one of theWriter's write(...) method call.abstract voidretryNow()Deprecated.Instructs Grizzly to try to resend the message right now.abstract voidDeprecated.Instructs Grizzly to send this message once some resources get released.final longsize()Deprecated.Returns the message size.
-
Field Details
-
queueRecord
Deprecated.
-
-
Constructor Details
-
PushBackContext
Deprecated.
-
-
Method Details
-
getPushBackHandler
Deprecated.ThePushBackHandlerpassed along with one of theWriter's write(...) method call.- Returns:
PushBackHandlerpassed 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.
-