Package org.glassfish.grizzly.asyncqueue
Class PushBackContext
- java.lang.Object
-
- org.glassfish.grizzly.asyncqueue.PushBackContext
-
@Deprecated public abstract class PushBackContext extends Object
Deprecated.push back logic is deprecated.Context being passed whenWriter
refuses to accept passedWritableMessage
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 Modifier and Type Field Description protected AsyncWriteQueueRecord
queueRecord
Deprecated.
-
Constructor Summary
Constructors Constructor Description PushBackContext(AsyncWriteQueueRecord queueRecord)
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract void
cancel()
Deprecated.Instructs Grizzly to cancel this message write and release message associated resources.PushBackHandler
getPushBackHandler()
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
retryWhenPossible()
Deprecated.Instructs Grizzly to send this message once some resources get released.long
size()
Deprecated.Returns the message size.
-
-
-
Field Detail
-
queueRecord
protected final AsyncWriteQueueRecord queueRecord
Deprecated.
-
-
Constructor Detail
-
PushBackContext
public PushBackContext(AsyncWriteQueueRecord queueRecord)
Deprecated.
-
-
Method Detail
-
getPushBackHandler
public PushBackHandler 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.
-
-