Package | Description |
---|---|
org.apache.mina.filter.keepalive |
IoFilter that provides the ability for connections to remain open when data is not being transferred.
|
Modifier and Type | Field and Description |
---|---|
static KeepAliveRequestTimeoutHandler |
KeepAliveRequestTimeoutHandler.CLOSE
Closes the connection after logging.
|
static KeepAliveRequestTimeoutHandler |
KeepAliveRequestTimeoutHandler.DEAF_SPEAKER
A special handler for the 'deaf speaker' mode.
|
static KeepAliveRequestTimeoutHandler |
KeepAliveRequestTimeoutHandler.EXCEPTION
Throws a
KeepAliveRequestTimeoutException . |
static KeepAliveRequestTimeoutHandler |
KeepAliveRequestTimeoutHandler.LOG
Logs a warning message, but doesn't do anything else.
|
static KeepAliveRequestTimeoutHandler |
KeepAliveRequestTimeoutHandler.NOOP
Do nothing.
|
Modifier and Type | Method and Description |
---|---|
KeepAliveRequestTimeoutHandler |
KeepAliveFilter.getRequestTimeoutHandler() |
Modifier and Type | Method and Description |
---|---|
void |
KeepAliveFilter.setRequestTimeoutHandler(KeepAliveRequestTimeoutHandler timeoutHandler)
Set the timeout handler
|
Constructor and Description |
---|
KeepAliveFilter(KeepAliveMessageFactory messageFactory,
IdleStatus interestedIdleStatus,
KeepAliveRequestTimeoutHandler policy)
Creates a new instance with the default properties.
|
KeepAliveFilter(KeepAliveMessageFactory messageFactory,
IdleStatus interestedIdleStatus,
KeepAliveRequestTimeoutHandler policy,
int keepAliveRequestInterval,
int keepAliveRequestTimeout)
Creates a new instance.
|
KeepAliveFilter(KeepAliveMessageFactory messageFactory,
KeepAliveRequestTimeoutHandler policy)
Creates a new instance with the default properties.
|
Copyright © 2004–2021 Apache MINA Project. All rights reserved.