| Enum Constant and Description |
|---|
CIRCUIT_OPEN |
ERROR |
MAX_CONCURRENCY_LEVEL_EXCEEDED |
QUEUE_FULL |
SUCCESS |
TIMEOUT |
| Modifier and Type | Method and Description |
|---|---|
boolean |
actionRejected() |
static Metric |
statusToMetric(Status status) |
static Metric |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Metric[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Metric SUCCESS
public static final Metric ERROR
public static final Metric TIMEOUT
public static final Metric CIRCUIT_OPEN
public static final Metric QUEUE_FULL
public static final Metric MAX_CONCURRENCY_LEVEL_EXCEEDED
public static Metric[] values()
for (Metric c : Metric.values()) System.out.println(c);
public static Metric 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 boolean actionRejected()
Copyright © 2014 Tim Brooks. All Rights Reserved.