Package net.sf.ehcache.config
Class TimeoutBehaviorConfiguration
- java.lang.Object
-
- net.sf.ehcache.config.TimeoutBehaviorConfiguration
-
- All Implemented Interfaces:
java.lang.Cloneable
public class TimeoutBehaviorConfiguration extends java.lang.Object implements java.lang.CloneableConfiguration element for configuring timeoutBehavior for nonstop- Author:
- Abhishek Sanoujam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeoutBehaviorConfiguration.TimeoutBehaviorTypeEnum encapsulating type of TimeoutBehavior
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCUSTOM_TYPE_FACTORY_PROPERTY_NAMEProperty name used to configure the class name of the factory class used byTimeoutBehaviorConfiguration.TimeoutBehaviorType.CUSTOMstatic java.lang.StringCUSTOM_TYPE_NAMEType name forTimeoutBehaviorConfiguration.TimeoutBehaviorType.CUSTOMstatic java.lang.StringDEFAULT_PROPERTIESDefault value for properties.static java.lang.StringDEFAULT_PROPERTY_SEPARATORDefault value for property separatorstatic TimeoutBehaviorConfiguration.TimeoutBehaviorTypeDEFAULT_TIMEOUT_BEHAVIOR_TYPEDefault value for timeout behaviorstatic java.lang.StringDEFAULT_VALUEDefault value for timeout behaviorstatic java.lang.StringEXCEPTION_TYPE_NAMEstatic java.lang.StringLOCAL_READS_AND_EXCEPTION_ON_WRITES_TYPE_NAMEstatic java.lang.StringLOCAL_READS_TYPE_NAMEstatic java.lang.StringNOOP_TYPE_NAMEType name forTimeoutBehaviorConfiguration.TimeoutBehaviorType.NOOP
-
Constructor Summary
Constructors Constructor Description TimeoutBehaviorConfiguration()Default constructorTimeoutBehaviorConfiguration(TimeoutBehaviorConfiguration ref)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()booleanequals(java.lang.Object obj)java.lang.StringgetProperties()Get the propertiesjava.lang.StringgetPropertySeparator()Get the property separatorTimeoutBehaviorConfiguration.TimeoutBehaviorTypegetTimeoutBehaviorType()Returns the type of timeout behavior configuredjava.lang.StringgetType()Returns the type of timeout behavior configuredinthashCode()TimeoutBehaviorConfigurationproperties(java.lang.String value)Set the propertiesTimeoutBehaviorConfigurationpropertySeparator(java.lang.String value)Set the property separatorvoidsetProperties(java.lang.String properties)Set the propertiesvoidsetPropertySeparator(java.lang.String propertySeparator)Set the property separatorvoidsetType(java.lang.String type)Set the type of timeout behaviorTimeoutBehaviorConfigurationtype(java.lang.String type)Set the type of timeout behavior
-
-
-
Field Detail
-
EXCEPTION_TYPE_NAME
public static final java.lang.String EXCEPTION_TYPE_NAME
- See Also:
- Constant Field Values
-
LOCAL_READS_TYPE_NAME
public static final java.lang.String LOCAL_READS_TYPE_NAME
- See Also:
- Constant Field Values
-
LOCAL_READS_AND_EXCEPTION_ON_WRITES_TYPE_NAME
public static final java.lang.String LOCAL_READS_AND_EXCEPTION_ON_WRITES_TYPE_NAME
- See Also:
- Constant Field Values
-
NOOP_TYPE_NAME
public static final java.lang.String NOOP_TYPE_NAME
Type name forTimeoutBehaviorConfiguration.TimeoutBehaviorType.NOOP- See Also:
- Constant Field Values
-
CUSTOM_TYPE_NAME
public static final java.lang.String CUSTOM_TYPE_NAME
Type name forTimeoutBehaviorConfiguration.TimeoutBehaviorType.CUSTOM- See Also:
- Constant Field Values
-
CUSTOM_TYPE_FACTORY_PROPERTY_NAME
public static final java.lang.String CUSTOM_TYPE_FACTORY_PROPERTY_NAME
Property name used to configure the class name of the factory class used byTimeoutBehaviorConfiguration.TimeoutBehaviorType.CUSTOM- See Also:
- Constant Field Values
-
DEFAULT_TIMEOUT_BEHAVIOR_TYPE
public static final TimeoutBehaviorConfiguration.TimeoutBehaviorType DEFAULT_TIMEOUT_BEHAVIOR_TYPE
Default value for timeout behavior
-
DEFAULT_PROPERTIES
public static final java.lang.String DEFAULT_PROPERTIES
Default value for properties.- See Also:
- Constant Field Values
-
DEFAULT_PROPERTY_SEPARATOR
public static final java.lang.String DEFAULT_PROPERTY_SEPARATOR
Default value for property separator- See Also:
- Constant Field Values
-
DEFAULT_VALUE
public static final java.lang.String DEFAULT_VALUE
Default value for timeout behavior
-
-
Constructor Detail
-
TimeoutBehaviorConfiguration
public TimeoutBehaviorConfiguration()
Default constructor
-
TimeoutBehaviorConfiguration
public TimeoutBehaviorConfiguration(TimeoutBehaviorConfiguration ref)
Copy constructor- Parameters:
ref- the reference to copy
-
-
Method Detail
-
getType
public java.lang.String getType()
Returns the type of timeout behavior configured- Returns:
- the configured type
-
getTimeoutBehaviorType
public TimeoutBehaviorConfiguration.TimeoutBehaviorType getTimeoutBehaviorType()
Returns the type of timeout behavior configured- Returns:
- the configured type
-
setType
public void setType(java.lang.String type)
Set the type of timeout behavior- Parameters:
type-
-
type
public TimeoutBehaviorConfiguration type(java.lang.String type)
Set the type of timeout behavior- Parameters:
type-- Returns:
- this instance
-
getProperties
public java.lang.String getProperties()
Get the properties- Returns:
- properties
-
setProperties
public void setProperties(java.lang.String properties)
Set the properties- Parameters:
properties-
-
properties
public TimeoutBehaviorConfiguration properties(java.lang.String value)
Set the properties- Parameters:
value-- Returns:
- this instance
-
getPropertySeparator
public java.lang.String getPropertySeparator()
Get the property separator- Returns:
- the propery separator
-
setPropertySeparator
public void setPropertySeparator(java.lang.String propertySeparator)
Set the property separator- Parameters:
propertySeparator-
-
propertySeparator
public TimeoutBehaviorConfiguration propertySeparator(java.lang.String value)
Set the property separator- Parameters:
value-- Returns:
- this instance
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-