ehcache

net.sf.ehcache.config
Class TimeoutBehaviorConfiguration

java.lang.Object
  extended by net.sf.ehcache.config.TimeoutBehaviorConfiguration
All Implemented Interfaces:
java.lang.Cloneable

public class TimeoutBehaviorConfiguration
extends java.lang.Object
implements java.lang.Cloneable

Configuration element for configuring timeoutBehavior for nonstop

Author:
Abhishek Sanoujam

Nested Class Summary
static class TimeoutBehaviorConfiguration.TimeoutBehaviorType
          Enum encapsulating type of TimeoutBehavior
 
Field Summary
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
          Type name for TimeoutBehaviorConfiguration.TimeoutBehaviorType.EXCEPTION
static java.lang.String LOCAL_READS_TYPE_NAME
          Type name for TimeoutBehaviorConfiguration.TimeoutBehaviorType.LOCAL_READS
static java.lang.String NOOP_TYPE_NAME
          Type name for TimeoutBehaviorConfiguration.TimeoutBehaviorType.NOOP
 
Constructor Summary
TimeoutBehaviorConfiguration()
           
 
Method Summary
 java.lang.Object clone()
          
 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
 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXCEPTION_TYPE_NAME

public static final java.lang.String EXCEPTION_TYPE_NAME
Type name for TimeoutBehaviorConfiguration.TimeoutBehaviorType.EXCEPTION

See Also:
Constant Field Values

LOCAL_READS_TYPE_NAME

public static final java.lang.String LOCAL_READS_TYPE_NAME
Type name for TimeoutBehaviorConfiguration.TimeoutBehaviorType.LOCAL_READS

See Also:
Constant Field Values

NOOP_TYPE_NAME

public static final java.lang.String NOOP_TYPE_NAME
Type name for TimeoutBehaviorConfiguration.TimeoutBehaviorType.NOOP

See Also:
Constant Field Values

CUSTOM_TYPE_NAME

public static final java.lang.String CUSTOM_TYPE_NAME
Type name for TimeoutBehaviorConfiguration.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 by TimeoutBehaviorConfiguration.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()
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:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

getNonstopTimeoutBehaviorFactory

public NonstopTimeoutBehaviorFactory getNonstopTimeoutBehaviorFactory()
Get the NonstopTimeoutBehaviorFactory according to the active config

Returns:
the nonstopTimeoutBehaviorFactory

ehcache

true