public enum LimitExceededStrategy extends Enum<LimitExceededStrategy>
LimitReader
, LimitWriter
, LimitInputStream
and LimitOutputStream
.Enum Constant and Description |
---|
DISCARD
Indicates that any remaining content should be discarded.
|
THROW
Indicates that a
LimitExceededException should be thrown. |
Modifier and Type | Method and Description |
---|---|
static LimitExceededStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LimitExceededStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LimitExceededStrategy DISCARD
LimitReader
and LimitInputStream
this will effectively mean the stream will end.public static final LimitExceededStrategy THROW
LimitExceededException
should be thrown.public static LimitExceededStrategy[] values()
for (LimitExceededStrategy c : LimitExceededStrategy.values()) System.out.println(c);
public static LimitExceededStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020–2024. All rights reserved.