|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.asyncqueue.PushBackContext
public abstract class PushBackContext
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)
| Field Summary | |
|---|---|
protected AsyncWriteQueueRecord |
queueRecord
|
| Constructor Summary | |
|---|---|
PushBackContext(AsyncWriteQueueRecord queueRecord)
|
|
| Method Summary | |
|---|---|
abstract void |
cancel()
Instructs Grizzly to cancel this message write and release message associated resources. |
PushBackHandler |
getPushBackHandler()
The PushBackHandler passed along with one of the
Writer's write(...) method call. |
abstract void |
retryNow()
Instructs Grizzly to try to resend the message right now. |
abstract void |
retryWhenPossible()
Instructs Grizzly to send this message once some resources get released. |
long |
size()
Returns the message size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final AsyncWriteQueueRecord queueRecord
| Constructor Detail |
|---|
public PushBackContext(AsyncWriteQueueRecord queueRecord)
| Method Detail |
|---|
public PushBackHandler getPushBackHandler()
PushBackHandler passed along with one of the
Writer's write(...) method call.
PushBackHandler passed along with write(...) call.public final long size()
public abstract void retryWhenPossible()
public abstract void retryNow()
public abstract void cancel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||