Deprecated.
push back logic is deprecated.
Callback handler, which will be called by 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.- Since:
- 2.2
- Author:
- Alexey Stashok
-
Method Summary
Modifier and TypeMethodDescriptionvoidonAccept(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 Details
-
onAccept
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
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
-