public enum JamPolicy extends Enum<JamPolicy>
| Enum Constant and Description |
|---|
DROP
Drop new element when adding an element and the cache is full
|
WAIT
Wait for free space when adding an element and the cache is full
|
| Modifier and Type | Method and Description |
|---|---|
static JamPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JamPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JamPolicy DROP
public static final JamPolicy WAIT
public static JamPolicy[] values()
for (JamPolicy c : JamPolicy.values()) System.out.println(c);
public static JamPolicy 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 © 2018 trivago. All rights reserved.