public enum GeckoQueuePolicyOption extends java.lang.Enum<GeckoQueuePolicyOption>
QueuePolicy instances| Enum Constant and Description |
|---|
GRADUAL_BREAKING_POLICY
Returns a gradual breaking policy with a buffer size of 100 and a treshold of 80% to start breaking the
the enqueue in the buffer and a default wait time of 5ms
|
| Modifier and Type | Method and Description |
|---|---|
abstract <T,U extends java.util.concurrent.BlockingQueue<<any>>> |
getPolicy()
Create a
QueuePolicy instance configured with default values |
static GeckoQueuePolicyOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GeckoQueuePolicyOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GeckoQueuePolicyOption GRADUAL_BREAKING_POLICY
public static GeckoQueuePolicyOption[] values()
for (GeckoQueuePolicyOption c : GeckoQueuePolicyOption.values()) System.out.println(c);
public static GeckoQueuePolicyOption valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract <T,U extends java.util.concurrent.BlockingQueue<<any>>> <any> getPolicy()
QueuePolicy instance configured with default valuesQueuePolicy to useData In Motion Consulting GmbH