public abstract class PushBackContext extends Object
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)Modifier and Type | Field and Description |
---|---|
protected AsyncWriteQueueRecord |
queueRecord
Deprecated.
|
Constructor and Description |
---|
PushBackContext(AsyncWriteQueueRecord queueRecord)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
cancel()
Deprecated.
Instructs Grizzly to cancel this message write and release message
associated resources.
|
PushBackHandler |
getPushBackHandler()
Deprecated.
The
PushBackHandler passed along with one of the
Writer '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.
|
protected final AsyncWriteQueueRecord queueRecord
public PushBackContext(AsyncWriteQueueRecord queueRecord)
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()
Copyright © 2015 Oracle Corporation. All rights reserved.