public enum PriorityPolicy extends java.lang.Enum<PriorityPolicy>
| Enum Constant and Description |
|---|
None
Standard consumer.
|
Overflow
Each client pull request specifies overflow limits in the
BaseConsumeOptions Currently minPending and minAckPending are respected. |
PinnedClient
If multiple clients make requests only ONE will be served messages.
|
Prioritized
The client pull request will specify a priortity from 1 to 10 in the
BaseConsumeOptions Request with lower priority will be served first. |
| Modifier and Type | Method and Description |
|---|---|
static @Nullable PriorityPolicy |
get(java.lang.String value)
Get an instance from the JSON value
|
java.lang.String |
toString() |
static PriorityPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PriorityPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PriorityPolicy None
public static final PriorityPolicy Overflow
BaseConsumeOptions public static final PriorityPolicy Prioritized
BaseConsumeOptions public static final PriorityPolicy PinnedClient
BaseConsumeOptions another client will be served.public static PriorityPolicy[] values()
for (PriorityPolicy c : PriorityPolicy.values()) System.out.println(c);
public static PriorityPolicy 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 java.lang.String toString()
toString in class java.lang.Enum<PriorityPolicy>public static @Nullable PriorityPolicy get(java.lang.String value)
value - the value