|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<KeepAlivePolicy>
org.apache.mina.filter.keepalive.KeepAlivePolicy
public enum KeepAlivePolicy
Tells KeepAliveFilter
what to do when a keep-alive response message
was not received within a certain timeout.
Enum Constant Summary | |
---|---|
CLOSE
Close the connection. |
|
EXCEPTION
Throw a KeepAliveTimeoutException . |
|
LOG
Log a warning message, but doesn't do anything else. |
|
OFF
Do nothing; disables the filter. |
Method Summary | |
---|---|
static KeepAlivePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static KeepAlivePolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final KeepAlivePolicy OFF
public static final KeepAlivePolicy LOG
public static final KeepAlivePolicy EXCEPTION
KeepAliveTimeoutException
.
public static final KeepAlivePolicy CLOSE
Method Detail |
---|
public static final KeepAlivePolicy[] values()
for(KeepAlivePolicy c : KeepAlivePolicy.values()) System.out.println(c);
public static KeepAlivePolicy valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |