public static enum TimeoutBehaviorConfiguration.TimeoutBehaviorType extends java.lang.Enum<TimeoutBehaviorConfiguration.TimeoutBehaviorType>
Enum Constant and Description |
---|
CUSTOM
Timeout behavior type that uses a custom factory to create the actual timeout behavior on timeout.
|
EXCEPTION
Timeout behavior type that throws exception on timeout
|
LOCAL_READS
Timeout behavior type that returns local values present in the VM or otherwise null on timeout
|
NOOP
Timeout behavior type that returns null and does nothing on timeout
|
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,TimeoutBehaviorConfiguration.TimeoutBehaviorType> |
TYPE_MAP |
Modifier and Type | Method and Description |
---|---|
abstract NonstopTimeoutBehaviorFactory |
getTimeoutBehaviorFactory(java.util.Properties properties)
Get the
NonstopTimeoutBehaviorFactory for this type |
static TimeoutBehaviorConfiguration.TimeoutBehaviorType |
getTimeoutBehaviorTypeFromName(java.lang.String typeName)
Get the
TimeoutBehaviorConfiguration.TimeoutBehaviorType corresponding to a name |
abstract java.lang.String |
getTypeName()
Returns a String signifying this type
|
static boolean |
isValidTimeoutBehaviorType(java.lang.String type)
Find out if a string is a valid timeoutBehavior type or not
|
static TimeoutBehaviorConfiguration.TimeoutBehaviorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeoutBehaviorConfiguration.TimeoutBehaviorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeoutBehaviorConfiguration.TimeoutBehaviorType EXCEPTION
public static final TimeoutBehaviorConfiguration.TimeoutBehaviorType NOOP
public static final TimeoutBehaviorConfiguration.TimeoutBehaviorType LOCAL_READS
public static final TimeoutBehaviorConfiguration.TimeoutBehaviorType CUSTOM
TimeoutBehaviorConfiguration.CUSTOM_TYPE_FACTORY_PROPERTY_NAME
whose value is the
fully qualified name of a class that implements NonstopTimeoutBehaviorFactory
having no-args constructor.private static final java.util.Map<java.lang.String,TimeoutBehaviorConfiguration.TimeoutBehaviorType> TYPE_MAP
public static TimeoutBehaviorConfiguration.TimeoutBehaviorType[] values()
for (TimeoutBehaviorConfiguration.TimeoutBehaviorType c : TimeoutBehaviorConfiguration.TimeoutBehaviorType.values()) System.out.println(c);
public static TimeoutBehaviorConfiguration.TimeoutBehaviorType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract java.lang.String getTypeName()
public abstract NonstopTimeoutBehaviorFactory getTimeoutBehaviorFactory(java.util.Properties properties)
NonstopTimeoutBehaviorFactory
for this typeproperties
- The configured propertiespublic static boolean isValidTimeoutBehaviorType(java.lang.String type)
type
- the string namepublic static TimeoutBehaviorConfiguration.TimeoutBehaviorType getTimeoutBehaviorTypeFromName(java.lang.String typeName)
TimeoutBehaviorConfiguration.TimeoutBehaviorType
corresponding to a nametypeName
- the type nameTimeoutBehaviorConfiguration.TimeoutBehaviorType