
Hystrix: Latency and Fault Tolerance for Distributed Systems
com.netflix.hystrix
Enum HystrixEventType
java.lang.Object
java.lang.Enum<HystrixEventType>
com.netflix.hystrix.HystrixEventType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<HystrixEventType>
public enum HystrixEventType
- extends java.lang.Enum<HystrixEventType>
Various states/events that execution can result in or have tracked.
These are most often accessed via HystrixRequestLog or HystrixCommand.getExecutionEvents().
|
Method Summary |
static HystrixEventType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static HystrixEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
SUCCESS
public static final HystrixEventType SUCCESS
FAILURE
public static final HystrixEventType FAILURE
TIMEOUT
public static final HystrixEventType TIMEOUT
SHORT_CIRCUITED
public static final HystrixEventType SHORT_CIRCUITED
THREAD_POOL_REJECTED
public static final HystrixEventType THREAD_POOL_REJECTED
SEMAPHORE_REJECTED
public static final HystrixEventType SEMAPHORE_REJECTED
FALLBACK_SUCCESS
public static final HystrixEventType FALLBACK_SUCCESS
FALLBACK_FAILURE
public static final HystrixEventType FALLBACK_FAILURE
FALLBACK_REJECTION
public static final HystrixEventType FALLBACK_REJECTION
EXCEPTION_THROWN
public static final HystrixEventType EXCEPTION_THROWN
RESPONSE_FROM_CACHE
public static final HystrixEventType RESPONSE_FROM_CACHE
COLLAPSED
public static final HystrixEventType COLLAPSED
values
public static HystrixEventType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (HystrixEventType c : HystrixEventType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static HystrixEventType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null