Enum BackOffStrategy
- java.lang.Object
-
- java.lang.Enum<BackOffStrategy>
-
- org.apache.syncope.common.lib.types.BackOffStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<BackOffStrategy>
public enum BackOffStrategy extends Enum<BackOffStrategy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXPONENTIAL
FIXED
RANDOM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefaultBackOffParams()
static BackOffStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static BackOffStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIXED
public static final BackOffStrategy FIXED
-
EXPONENTIAL
public static final BackOffStrategy EXPONENTIAL
-
RANDOM
public static final BackOffStrategy RANDOM
-
-
Method Detail
-
values
public static BackOffStrategy[] 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 (BackOffStrategy c : BackOffStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BackOffStrategy 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 nameNullPointerException
- if the argument is null
-
getDefaultBackOffParams
public String getDefaultBackOffParams()
-
-