|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<HystrixRollingNumberEvent>
com.netflix.hystrix.util.HystrixRollingNumberEvent
public enum HystrixRollingNumberEvent
Various states/events that can be captured in the HystrixRollingNumber.
Note that events are defined as different types:
isCounter() == trueisMaxUpdater() == true
The Counter type events can be used with HystrixRollingNumber.increment(com.netflix.hystrix.util.HystrixRollingNumberEvent), HystrixRollingNumber.add(com.netflix.hystrix.util.HystrixRollingNumberEvent, long), HystrixRollingNumber.getRollingSum(com.netflix.hystrix.util.HystrixRollingNumberEvent) and others.
The MaxUpdater type events can be used with HystrixRollingNumber.updateRollingMax(com.netflix.hystrix.util.HystrixRollingNumberEvent, long) and HystrixRollingNumber.getRollingMaxValue(com.netflix.hystrix.util.HystrixRollingNumberEvent).
| Method Summary | |
|---|---|
boolean |
isCounter()
|
boolean |
isMaxUpdater()
|
static HystrixRollingNumberEvent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static HystrixRollingNumberEvent[] |
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 |
| Enum Constant Detail |
|---|
public static final HystrixRollingNumberEvent SUCCESS
public static final HystrixRollingNumberEvent FAILURE
public static final HystrixRollingNumberEvent TIMEOUT
public static final HystrixRollingNumberEvent SHORT_CIRCUITED
public static final HystrixRollingNumberEvent THREAD_POOL_REJECTED
public static final HystrixRollingNumberEvent SEMAPHORE_REJECTED
public static final HystrixRollingNumberEvent FALLBACK_SUCCESS
public static final HystrixRollingNumberEvent FALLBACK_FAILURE
public static final HystrixRollingNumberEvent FALLBACK_REJECTION
public static final HystrixRollingNumberEvent EXCEPTION_THROWN
public static final HystrixRollingNumberEvent THREAD_EXECUTION
public static final HystrixRollingNumberEvent THREAD_MAX_ACTIVE
public static final HystrixRollingNumberEvent COLLAPSED
public static final HystrixRollingNumberEvent RESPONSE_FROM_CACHE
| Method Detail |
|---|
public static HystrixRollingNumberEvent[] values()
for (HystrixRollingNumberEvent c : HystrixRollingNumberEvent.values()) System.out.println(c);
public static HystrixRollingNumberEvent 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 name
java.lang.NullPointerException - if the argument is nullpublic boolean isCounter()
public boolean isMaxUpdater()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||