Package org.apache.mina.filter.keepalive
Interface KeepAliveRequestTimeoutHandler
-
public interface KeepAliveRequestTimeoutHandlerTellsKeepAliveFilterwhat to do when a keep-alive response message was not received within a certain timeout.- Author:
- Apache MINA Project
-
-
Field Summary
Fields Modifier and Type Field Description static KeepAliveRequestTimeoutHandlerCLOSECloses the connection after logging.static KeepAliveRequestTimeoutHandlerDEAF_SPEAKERA special handler for the 'deaf speaker' mode.static KeepAliveRequestTimeoutHandlerEXCEPTIONThrows aKeepAliveRequestTimeoutException.static KeepAliveRequestTimeoutHandlerLOGLogs a warning message, but doesn't do anything else.static KeepAliveRequestTimeoutHandlerNOOPDo nothing.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidkeepAliveRequestTimedOut(KeepAliveFilter filter, IoSession session)Invoked whenKeepAliveFiltercouldn't receive the response for the sent keep alive message.
-
-
-
Field Detail
-
NOOP
static final KeepAliveRequestTimeoutHandler NOOP
Do nothing.
-
LOG
static final KeepAliveRequestTimeoutHandler LOG
Logs a warning message, but doesn't do anything else.
-
EXCEPTION
static final KeepAliveRequestTimeoutHandler EXCEPTION
Throws aKeepAliveRequestTimeoutException.
-
CLOSE
static final KeepAliveRequestTimeoutHandler CLOSE
Closes the connection after logging.
-
DEAF_SPEAKER
static final KeepAliveRequestTimeoutHandler DEAF_SPEAKER
A special handler for the 'deaf speaker' mode.
-
-
Method Detail
-
keepAliveRequestTimedOut
void keepAliveRequestTimedOut(KeepAliveFilter filter, IoSession session) throws Exception
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
-
-