public interface PushBackHandler
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.Modifier and Type | Method and Description |
---|---|
void |
onAccept(Connection connection,
WritableMessage message)
Deprecated.
The method is invoked once message is accepted by
Writer . |
void |
onPushBack(Connection connection,
WritableMessage message,
PushBackContext pushBackContext)
Deprecated.
The method is invoked if message was refused by
Writer
due to I/O or memory limitations. |
void onAccept(Connection connection, WritableMessage message)
Writer
. It means either message was written
or scheduled to be written asynchronously.connection
- Connection
message
- WritableMessage
void onPushBack(Connection connection, WritableMessage message, PushBackContext pushBackContext)
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.connection
- Connection
message
- WritableMessage
pushBackContext
- PushBackContext
Copyright © 2015 Oracle Corporation. All rights reserved.