Package org.glassfish.grizzly.asyncqueue
Interface PushBackHandler
-
@Deprecated public interface PushBackHandler
Deprecated.push back logic is deprecated.Callback handler, which will be called by GrizzlyWriterimplementation, 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 byPushBackContextor implement any other custom processing logic.- Since:
- 2.2
- Author:
- Alexey Stashok
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidonAccept(Connection connection, WritableMessage message)Deprecated.The method is invoked once message is accepted byWriter.voidonPushBack(Connection connection, WritableMessage message, PushBackContext pushBackContext)Deprecated.The method is invoked if message was refused byWriterdue to I/O or memory limitations.
-
-
-
Method Detail
-
onAccept
void onAccept(Connection connection, WritableMessage message)
Deprecated.The method is invoked once message is accepted byWriter. It means either message was written or scheduled to be written asynchronously.- Parameters:
connection-Connectionmessage-WritableMessage
-
onPushBack
void onPushBack(Connection connection, WritableMessage message, PushBackContext pushBackContext)
Deprecated.The method is invoked if message was refused byWriterdue to I/O or memory limitations. At this point user can perform one of the actions proposed byPushBackContext, or implement any custom processing logic.- Parameters:
connection-Connectionmessage-WritableMessagepushBackContext-PushBackContext
-
-