public enum ClusterFlowEvent extends Enum<ClusterFlowEvent>
| Enum Constant and Description |
|---|
BLOCK
Normal block.
|
BLOCK_REQUEST
Token request (from client) blocked.
|
OCCUPIED_BLOCK
Block (pre-occupy incoming buckets failed).
|
OCCUPIED_PASS
Pass (pre-occupy incoming buckets).
|
PASS
Normal pass.
|
PASS_REQUEST
Token request (from client) passed.
|
WAITING
Waiting due to flow shaping or for next bucket tick.
|
| Modifier and Type | Method and Description |
|---|---|
static ClusterFlowEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClusterFlowEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClusterFlowEvent PASS
public static final ClusterFlowEvent BLOCK
public static final ClusterFlowEvent PASS_REQUEST
public static final ClusterFlowEvent BLOCK_REQUEST
public static final ClusterFlowEvent OCCUPIED_PASS
public static final ClusterFlowEvent OCCUPIED_BLOCK
public static final ClusterFlowEvent WAITING
public static ClusterFlowEvent[] values()
for (ClusterFlowEvent c : ClusterFlowEvent.values()) System.out.println(c);
public static ClusterFlowEvent 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 © 2021 Alibaba Group. All rights reserved.