|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<WriteThrottlePolicy>
org.apache.mina.filter.traffic.WriteThrottlePolicy
public enum WriteThrottlePolicy
Tells WriteThrottleFilter
what to do when there are too many
scheduled write requests in the session buffer.
Enum Constant Summary | |
---|---|
BLOCK
Block the write operation until the size of write request buffer is full. |
|
FAIL
Make the write operation fail immediately. |
|
LOG
Log a warning message, but doesn't limit anything. |
|
OFF
Do nothing; disables the filter. |
Method Summary | |
---|---|
static WriteThrottlePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static WriteThrottlePolicy[] |
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 WriteThrottlePolicy OFF
public static final WriteThrottlePolicy LOG
public static final WriteThrottlePolicy BLOCK
WriteThrottleFilter
to prevent the
OutOfMemoryError
on the reader side.
public static final WriteThrottlePolicy FAIL
exception
' property of
the returned WriteFuture
will be WriteFloodException
.
The exception will also be notified as an exceptionCaught
event.
Method Detail |
---|
public static final WriteThrottlePolicy[] values()
for(WriteThrottlePolicy c : WriteThrottlePolicy.values()) System.out.println(c);
public static WriteThrottlePolicy 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 |