public enum GeckoPushbackPolicyOption extends java.lang.Enum<GeckoPushbackPolicyOption>
PushbackPolicys cann be added here.| Enum Constant and Description |
|---|
LINEAR_AFTER_THRESHOLD
This
PushbackPolicy increases linear after the queue breaches a given threshold. |
| Modifier and Type | Method and Description |
|---|---|
abstract <T,U extends java.util.concurrent.BlockingQueue<<any>>> |
getPolicy(long value)
Create a
PushbackPolicy instance configured with a base back
pressure time in nanoseconds
The actual backpressure returned will vary based on the selected
implementation, the base value, and the state of the buffer. |
static GeckoPushbackPolicyOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GeckoPushbackPolicyOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GeckoPushbackPolicyOption LINEAR_AFTER_THRESHOLD
PushbackPolicy increases linear after the queue breaches a given threshold.
If the threshold is e.g. 100 the 101st element would cause a backpressure of one. the 110th element 10.public static GeckoPushbackPolicyOption[] values()
for (GeckoPushbackPolicyOption c : GeckoPushbackPolicyOption.values()) System.out.println(c);
public static GeckoPushbackPolicyOption 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(long value)
PushbackPolicy instance configured with a base back
pressure time in nanoseconds
The actual backpressure returned will vary based on the selected
implementation, the base value, and the state of the buffer.value - PushbackPolicy to useData In Motion Consulting GmbH