Top Description Fields Constructors Methods
org.glassfish.grizzly.asyncqueue

public abstract Class PushBackContext

extends Object
Class Inheritance
Annotations
@Deprecated

Deprecated

push back logic is deprecated.

Context being passed when org.glassfish.grizzly.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)
Author
Alexey Stashok
Since
2.2

Field Summary

Modifier and TypeField and Description
protected final AsyncWriteQueueRecord

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
cancel()

Instructs Grizzly to cancel this message write and release message associated resources.

public PushBackHandler

Returns:

PushBackHandler passed along with write(...) call.
getPushBackHandler
()
References Deprecated PushBackHandler is deprecated or references (maybe indirectly) at least one deprecated element.

The PushBackHandler passed along with one of the org.glassfish.grizzly.Writer's write(...) method call.

public abstract void
retryNow()

Instructs Grizzly to try to resend the message right now.

public abstract void
retryWhenPossible()

Instructs Grizzly to send this message once some resources get released.

public final long

Returns:

the message size.
size
()

Returns the message size.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

queueRecordback to summary
protected final AsyncWriteQueueRecord queueRecord

Constructor Detail

PushBackContextback to summary
public PushBackContext(final AsyncWriteQueueRecord queueRecord)

Method Detail

cancelback to summary
public abstract void cancel()

Instructs Grizzly to cancel this message write and release message associated resources.

getPushBackHandlerback to summary
public PushBackHandler getPushBackHandler()

References Deprecated

PushBackHandler is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

The PushBackHandler passed along with one of the org.glassfish.grizzly.Writer's write(...) method call.

Returns:PushBackHandler

PushBackHandler passed along with write(...) call.

retryNowback to summary
public abstract void retryNow()

Instructs Grizzly to try to resend the message right now.

retryWhenPossibleback to summary
public abstract void retryWhenPossible()

Instructs Grizzly to send this message once some resources get released.

sizeback to summary
public final long size()

Returns the message size.

Returns:long

the message size.