public interface KeepAliveRequestTimeoutHandler
KeepAliveFilter what to do when a keep-alive response message
was not received within a certain timeout.| Modifier and Type | Field | Description |
|---|---|---|
static KeepAliveRequestTimeoutHandler |
CLOSE |
Closes the connection after logging.
|
static KeepAliveRequestTimeoutHandler |
DEAF_SPEAKER |
A special handler for the 'deaf speaker' mode.
|
static KeepAliveRequestTimeoutHandler |
EXCEPTION |
Throws a
KeepAliveRequestTimeoutException. |
static KeepAliveRequestTimeoutHandler |
LOG |
Logs a warning message, but doesn't do anything else.
|
static KeepAliveRequestTimeoutHandler |
NOOP |
Do nothing.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
keepAliveRequestTimedOut(KeepAliveFilter filter,
IoSession session) |
Invoked when
KeepAliveFilter couldn't receive the response for
the sent keep alive message. |
static final KeepAliveRequestTimeoutHandler NOOP
static final KeepAliveRequestTimeoutHandler LOG
static final KeepAliveRequestTimeoutHandler EXCEPTION
KeepAliveRequestTimeoutException.static final KeepAliveRequestTimeoutHandler CLOSE
static final KeepAliveRequestTimeoutHandler DEAF_SPEAKER
void keepAliveRequestTimedOut(KeepAliveFilter filter, IoSession session) throws Exception
KeepAliveFilter couldn't receive the response for
the sent keep alive message.filter - The filter to usesession - The current sessionException - If anything went wrongCopyright © 2004–2018 Apache MINA Project. All rights reserved.