com.twitter.common.net.loadbalancing
Enum LoadBalancingStrategy.ConnectionResult

java.lang.Object
  extended by java.lang.Enum<LoadBalancingStrategy.ConnectionResult>
      extended by com.twitter.common.net.loadbalancing.LoadBalancingStrategy.ConnectionResult
All Implemented Interfaces:
Serializable, Comparable<LoadBalancingStrategy.ConnectionResult>
Enclosing interface:
LoadBalancingStrategy<K>

public static enum LoadBalancingStrategy.ConnectionResult
extends Enum<LoadBalancingStrategy.ConnectionResult>


Enum Constant Summary
FAILED
           
SUCCESS
           
TIMEOUT
           
 
Method Summary
static LoadBalancingStrategy.ConnectionResult valueOf(String name)
          Returns the enum constant of this type with the specified name.
static LoadBalancingStrategy.ConnectionResult[] 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

FAILED

public static final LoadBalancingStrategy.ConnectionResult FAILED

TIMEOUT

public static final LoadBalancingStrategy.ConnectionResult TIMEOUT

SUCCESS

public static final LoadBalancingStrategy.ConnectionResult SUCCESS
Method Detail

values

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

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

valueOf

public static LoadBalancingStrategy.ConnectionResult valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null