Top Description Methods
org.glassfish.grizzly.asyncqueue

public Interface PushBackHandler

Annotations
@Deprecated
@SuppressWarnings:deprecation
Imports
org.glassfish.grizzly.Connection

Deprecated

push back logic is deprecated.

Callback handler, which will be called by Grizzly org.glassfish.grizzly.Writer implementation, if message can not be neither written nor added to write queue at the moment due to I/O or memory limitations. User may perform one of the actions proposed by PushBackContext or implement any other custom processing logic.
Author
Alexey Stashok
Since
2.2

Method Summary

Modifier and TypeMethod and Description
public void
onAccept(Connection<L> connection, WritableMessage message)

The method is invoked once message is accepted by org.glassfish.grizzly.Writer.

public void
onPushBack(Connection<L> connection, WritableMessage message, PushBackContext pushBackContext)
References Deprecated PushBackContext is deprecated or references (maybe indirectly) at least one deprecated element.

The method is invoked if message was refused by org.glassfish.grizzly.Writer due to I/O or memory limitations.

Method Detail

onAcceptback to summary
public void onAccept(Connection<L> connection, WritableMessage message)

The method is invoked once message is accepted by org.glassfish.grizzly.Writer. It means either message was written or scheduled to be written asynchronously.

Parameters
connection:Connection<L>

Connection

message:WritableMessage

WritableMessage

onPushBackback to summary
public void onPushBack(Connection<L> connection, WritableMessage message, PushBackContext pushBackContext)

References Deprecated

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

See corresponding docs for further information.

The method is invoked if message was refused by org.glassfish.grizzly.Writer due to I/O or memory limitations. At this point user can perform one of the actions proposed by PushBackContext, or implement any custom processing logic.

Parameters
connection:Connection<L>

Connection

message:WritableMessage

WritableMessage

pushBackContext:PushBackContext

PushBackContext