- All Implemented Interfaces:
Serializable, Comparable<NTCPTransport.BidTier>, java.lang.constant.Constable
- Enclosing class:
NTCPTransport
The bid tier selected by the capacity/cost cascade, in order from most to least attractive. Each tier maps to one of the shared cached bids.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAt capacity, normal cost.At capacity, high cost.Have capacity, normal cost.Have capacity, high cost.Method Summary
All MethodsModifier and TypeMethodDescriptionstatic NTCPTransport.BidTierReturns the enum constant of this class with the specified name.static NTCPTransport.BidTier[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
SLOW
Have capacity, normal cost.SLOW_COST
Have capacity, high cost.NEAR_CAPACITY
At capacity, normal cost.NEAR_CAPACITY_COST
At capacity, high cost.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null