public enum HystrixRollingNumberEvent extends Enum<HystrixRollingNumberEvent>
HystrixRollingNumber
.
Note that events are defined as different types:
isCounter() == true
isMaxUpdater() == 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)
.
Modifier and Type | Method and Description |
---|---|
static HystrixRollingNumberEvent |
from(HystrixEventType eventType) |
boolean |
isCounter() |
boolean |
isMaxUpdater() |
static HystrixRollingNumberEvent |
valueOf(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.
|
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 BAD_REQUEST
public static final HystrixRollingNumberEvent FALLBACK_SUCCESS
public static final HystrixRollingNumberEvent FALLBACK_FAILURE
public static final HystrixRollingNumberEvent FALLBACK_REJECTION
public static final HystrixRollingNumberEvent FALLBACK_MISSING
public static final HystrixRollingNumberEvent EXCEPTION_THROWN
public static final HystrixRollingNumberEvent COMMAND_MAX_ACTIVE
public static final HystrixRollingNumberEvent EMIT
public static final HystrixRollingNumberEvent FALLBACK_EMIT
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
public static final HystrixRollingNumberEvent COLLAPSER_REQUEST_BATCHED
public static final HystrixRollingNumberEvent COLLAPSER_BATCH
public static HystrixRollingNumberEvent[] values()
for (HystrixRollingNumberEvent c : HystrixRollingNumberEvent.values()) System.out.println(c);
public static HystrixRollingNumberEvent 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 nullpublic boolean isCounter()
public boolean isMaxUpdater()
public static HystrixRollingNumberEvent from(HystrixEventType eventType)
Copyright © 2017. All Rights Reserved.