public class TimeoutBehaviorConfiguration
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
TimeoutBehaviorConfiguration.TimeoutBehaviorType
Enum encapsulating type of TimeoutBehavior
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CUSTOM_TYPE_FACTORY_PROPERTY_NAME
Property name used to configure the class name of the factory class used by
TimeoutBehaviorConfiguration.TimeoutBehaviorType.CUSTOM |
static java.lang.String |
CUSTOM_TYPE_NAME
Type name for
TimeoutBehaviorConfiguration.TimeoutBehaviorType.CUSTOM |
static java.lang.String |
DEFAULT_PROPERTIES
Default value for properties.
|
static java.lang.String |
DEFAULT_PROPERTY_SEPARATOR
Default value for property separator
|
static TimeoutBehaviorConfiguration.TimeoutBehaviorType |
DEFAULT_TIMEOUT_BEHAVIOR_TYPE
Default value for timeout behavior
|
static java.lang.String |
DEFAULT_VALUE
Default value for timeout behavior
|
static java.lang.String |
EXCEPTION_TYPE_NAME
|
static java.lang.String |
LOCAL_READS_TYPE_NAME
|
static java.lang.String |
NOOP_TYPE_NAME
Type name for
TimeoutBehaviorConfiguration.TimeoutBehaviorType.NOOP |
private java.lang.String |
properties |
private java.lang.String |
propertySeparator |
private TimeoutBehaviorConfiguration.TimeoutBehaviorType |
type |
Constructor and Description |
---|
TimeoutBehaviorConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object obj) |
private java.util.Properties |
extractProperties() |
NonstopTimeoutBehaviorFactory |
getNonstopTimeoutBehaviorFactory()
Get the
NonstopTimeoutBehaviorFactory according to the active config |
java.lang.String |
getProperties()
Get the properties
|
java.lang.String |
getPropertySeparator()
Get the property separator
|
TimeoutBehaviorConfiguration.TimeoutBehaviorType |
getTimeoutBehaviorType()
Returns the type of timeout behavior configured
|
java.lang.String |
getType()
Returns the type of timeout behavior configured
|
int |
hashCode() |
TimeoutBehaviorConfiguration |
properties(java.lang.String value)
Set the properties
|
TimeoutBehaviorConfiguration |
propertySeparator(java.lang.String value)
Set the property separator
|
void |
setProperties(java.lang.String properties)
Set the properties
|
void |
setPropertySeparator(java.lang.String propertySeparator)
Set the property separator
|
void |
setType(java.lang.String type)
Set the type of timeout behavior
|
TimeoutBehaviorConfiguration |
type(java.lang.String type)
Set the type of timeout behavior
|
public static final java.lang.String EXCEPTION_TYPE_NAME
public static final java.lang.String LOCAL_READS_TYPE_NAME
public static final java.lang.String NOOP_TYPE_NAME
TimeoutBehaviorConfiguration.TimeoutBehaviorType.NOOP
public static final java.lang.String CUSTOM_TYPE_NAME
TimeoutBehaviorConfiguration.TimeoutBehaviorType.CUSTOM
public static final java.lang.String CUSTOM_TYPE_FACTORY_PROPERTY_NAME
TimeoutBehaviorConfiguration.TimeoutBehaviorType.CUSTOM
public static final TimeoutBehaviorConfiguration.TimeoutBehaviorType DEFAULT_TIMEOUT_BEHAVIOR_TYPE
public static final java.lang.String DEFAULT_PROPERTIES
public static final java.lang.String DEFAULT_PROPERTY_SEPARATOR
public static final java.lang.String DEFAULT_VALUE
private volatile TimeoutBehaviorConfiguration.TimeoutBehaviorType type
private volatile java.lang.String properties
private volatile java.lang.String propertySeparator
public java.lang.String getType()
public TimeoutBehaviorConfiguration.TimeoutBehaviorType getTimeoutBehaviorType()
public void setType(java.lang.String type)
type
- public TimeoutBehaviorConfiguration type(java.lang.String type)
type
- public java.lang.String getProperties()
public void setProperties(java.lang.String properties)
properties
- public TimeoutBehaviorConfiguration properties(java.lang.String value)
value
- public java.lang.String getPropertySeparator()
public void setPropertySeparator(java.lang.String propertySeparator)
propertySeparator
- public TimeoutBehaviorConfiguration propertySeparator(java.lang.String value)
value
- public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public NonstopTimeoutBehaviorFactory getNonstopTimeoutBehaviorFactory()
NonstopTimeoutBehaviorFactory
according to the active configprivate java.util.Properties extractProperties()