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 whenWriterrefuses to accept passedWritableMessagedue 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 AsyncWriteQueueRecordqueueRecordDeprecated.
-
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 voidcancel()Deprecated.Instructs Grizzly to cancel this message write and release message associated resources.PushBackHandlergetPushBackHandler()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 voidretryWhenPossible()Deprecated.Instructs Grizzly to send this message once some resources get released.longsize()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.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.
-
-