Interface KeepAliveRequestTimeoutHandler
public interface KeepAliveRequestTimeoutHandler
Tells
KeepAliveFilter what to do when a keep-alive response message
was not received within a certain timeout.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final KeepAliveRequestTimeoutHandlerCloses the connection after logging.static final KeepAliveRequestTimeoutHandlerA special handler for the 'deaf speaker' mode.static final KeepAliveRequestTimeoutHandlerThrows aKeepAliveRequestTimeoutException.static final KeepAliveRequestTimeoutHandlerLogs a warning message, but doesn't do anything else.static final KeepAliveRequestTimeoutHandlerDo nothing. -
Method Summary
Modifier and TypeMethodDescriptionvoidkeepAliveRequestTimedOut(KeepAliveFilter filter, IoSession session) Invoked whenKeepAliveFiltercouldn't receive the response for the sent keep alive message.
-
Field Details
-
NOOP
Do nothing. -
LOG
Logs a warning message, but doesn't do anything else. -
EXCEPTION
Throws aKeepAliveRequestTimeoutException. -
CLOSE
Closes the connection after logging. -
DEAF_SPEAKER
A special handler for the 'deaf speaker' mode.
-
-
Method Details
-
keepAliveRequestTimedOut
Invoked whenKeepAliveFiltercouldn't receive the response for the sent keep alive message.- Parameters:
filter- The filter to usesession- The current session- Throws:
Exception- If anything went wrong
-