|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ReadThrottlePolicy>
org.apache.mina.filter.traffic.ReadThrottlePolicy
public enum ReadThrottlePolicy
Tells ReadThrottleFilter
what to do when the read buffer
grows up too much.
Enum Constant Summary | |
---|---|
BLOCK
Block the write operation until the size of write request buffer is full. |
|
CLOSE
|
|
EXCEPTION
|
|
LOG
Log a warning message, but doesn't limit anything. |
|
OFF
Do nothing; disables the filter. |
Method Summary | |
---|---|
static ReadThrottlePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ReadThrottlePolicy[] |
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 ReadThrottlePolicy OFF
public static final ReadThrottlePolicy LOG
public static final ReadThrottlePolicy BLOCK
ReadThrottleFilter
to prevent the
OutOfMemoryError
on the reader side.
public static final ReadThrottlePolicy EXCEPTION
public static final ReadThrottlePolicy CLOSE
Method Detail |
---|
public static final ReadThrottlePolicy[] values()
for(ReadThrottlePolicy c : ReadThrottlePolicy.values()) System.out.println(c);
public static ReadThrottlePolicy 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 |