com.netflix.hystrix.util
Enum HystrixRollingNumberEvent

java.lang.Object
  extended by java.lang.Enum<HystrixRollingNumberEvent>
      extended by com.netflix.hystrix.util.HystrixRollingNumberEvent
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HystrixRollingNumberEvent>

public enum HystrixRollingNumberEvent
extends java.lang.Enum<HystrixRollingNumberEvent>

Various states/events that can be captured in the HystrixRollingNumber.

Note that events are defined as different types:

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).


Enum Constant Summary
COLLAPSED
           
EXCEPTION_THROWN
           
FAILURE
           
FALLBACK_FAILURE
           
FALLBACK_REJECTION
           
FALLBACK_SUCCESS
           
RESPONSE_FROM_CACHE
           
SEMAPHORE_REJECTED
           
SHORT_CIRCUITED
           
SUCCESS
           
THREAD_EXECUTION
           
THREAD_MAX_ACTIVE
           
THREAD_POOL_REJECTED
           
TIMEOUT
           
 
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

SUCCESS

public static final HystrixRollingNumberEvent SUCCESS

FAILURE

public static final HystrixRollingNumberEvent FAILURE

TIMEOUT

public static final HystrixRollingNumberEvent TIMEOUT

SHORT_CIRCUITED

public static final HystrixRollingNumberEvent SHORT_CIRCUITED

THREAD_POOL_REJECTED

public static final HystrixRollingNumberEvent THREAD_POOL_REJECTED

SEMAPHORE_REJECTED

public static final HystrixRollingNumberEvent SEMAPHORE_REJECTED

FALLBACK_SUCCESS

public static final HystrixRollingNumberEvent FALLBACK_SUCCESS

FALLBACK_FAILURE

public static final HystrixRollingNumberEvent FALLBACK_FAILURE

FALLBACK_REJECTION

public static final HystrixRollingNumberEvent FALLBACK_REJECTION

EXCEPTION_THROWN

public static final HystrixRollingNumberEvent EXCEPTION_THROWN

THREAD_EXECUTION

public static final HystrixRollingNumberEvent THREAD_EXECUTION

THREAD_MAX_ACTIVE

public static final HystrixRollingNumberEvent THREAD_MAX_ACTIVE

COLLAPSED

public static final HystrixRollingNumberEvent COLLAPSED

RESPONSE_FROM_CACHE

public static final HystrixRollingNumberEvent RESPONSE_FROM_CACHE
Method Detail

values

public static HystrixRollingNumberEvent[] 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 (HystrixRollingNumberEvent c : HystrixRollingNumberEvent.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static HystrixRollingNumberEvent 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

isCounter

public boolean isCounter()

isMaxUpdater

public boolean isMaxUpdater()