ehcache

net.sf.ehcache.config
Class TimeoutBehaviorConfiguration

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

public class TimeoutBehaviorConfiguration
extends Object
implements 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 String CUSTOM_TYPE_FACTORY_PROPERTY_NAME
          Property name used to configure the class name of the factory class used by TimeoutBehaviorConfiguration.TimeoutBehaviorType.CUSTOM
static String CUSTOM_TYPE_NAME
          Type name for TimeoutBehaviorConfiguration.TimeoutBehaviorType.CUSTOM
static String DEFAULT_PROPERTIES
          Default value for properties.
static String DEFAULT_PROPERTY_SEPARATOR
          Default value for property separator
static TimeoutBehaviorConfiguration.TimeoutBehaviorType DEFAULT_TIMEOUT_BEHAVIOR_TYPE
          Default value for timeout behavior
static String DEFAULT_VALUE
          Default value for timeout behavior
static String EXCEPTION_TYPE_NAME
          Type name for TimeoutBehaviorConfiguration.TimeoutBehaviorType.EXCEPTION
static String LOCAL_READS_AND_EXCEPTION_ON_WRITES_TYPE_NAME
          Type name for TimeoutBehaviorConfiguration.TimeoutBehaviorType.LOCAL_READS_AND_EXCEPTION_ON_WRITES
static String LOCAL_READS_TYPE_NAME
          Type name for TimeoutBehaviorConfiguration.TimeoutBehaviorType.LOCAL_READS
static String NOOP_TYPE_NAME
          Type name for TimeoutBehaviorConfiguration.TimeoutBehaviorType.NOOP
 
Constructor Summary
TimeoutBehaviorConfiguration()
          Default constructor
TimeoutBehaviorConfiguration(TimeoutBehaviorConfiguration ref)
          Copy constructor
 
Method Summary
 Object clone()
          
 boolean equals(Object obj)
           
 String getProperties()
          Get the properties
 String getPropertySeparator()
          Get the property separator
 TimeoutBehaviorConfiguration.TimeoutBehaviorType getTimeoutBehaviorType()
          Returns the type of timeout behavior configured
 String getType()
          Returns the type of timeout behavior configured
 int hashCode()
           
 TimeoutBehaviorConfiguration properties(String value)
          Set the properties
 TimeoutBehaviorConfiguration propertySeparator(String value)
          Set the property separator
 void setProperties(String properties)
          Set the properties
 void setPropertySeparator(String propertySeparator)
          Set the property separator
 void setType(String type)
          Set the type of timeout behavior
 TimeoutBehaviorConfiguration type(String type)
          Set the type of timeout behavior
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXCEPTION_TYPE_NAME

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

See Also:
Constant Field Values

LOCAL_READS_TYPE_NAME

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

See Also:
Constant Field Values

LOCAL_READS_AND_EXCEPTION_ON_WRITES_TYPE_NAME

public static final String LOCAL_READS_AND_EXCEPTION_ON_WRITES_TYPE_NAME
Type name for TimeoutBehaviorConfiguration.TimeoutBehaviorType.LOCAL_READS_AND_EXCEPTION_ON_WRITES

See Also:
Constant Field Values

NOOP_TYPE_NAME

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

See Also:
Constant Field Values

CUSTOM_TYPE_NAME

public static final String CUSTOM_TYPE_NAME
Type name for TimeoutBehaviorConfiguration.TimeoutBehaviorType.CUSTOM

See Also:
Constant Field Values

CUSTOM_TYPE_FACTORY_PROPERTY_NAME

public static final 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 String DEFAULT_PROPERTIES
Default value for properties.

See Also:
Constant Field Values

DEFAULT_PROPERTY_SEPARATOR

public static final String DEFAULT_PROPERTY_SEPARATOR
Default value for property separator

See Also:
Constant Field Values

DEFAULT_VALUE

public static final 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 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(String type)
Set the type of timeout behavior

Parameters:
type -

type

public TimeoutBehaviorConfiguration type(String type)
Set the type of timeout behavior

Parameters:
type -
Returns:
this instance

getProperties

public String getProperties()
Get the properties

Returns:
properties

setProperties

public void setProperties(String properties)
Set the properties

Parameters:
properties -

properties

public TimeoutBehaviorConfiguration properties(String value)
Set the properties

Parameters:
value -
Returns:
this instance

getPropertySeparator

public String getPropertySeparator()
Get the property separator

Returns:
the propery separator

setPropertySeparator

public void setPropertySeparator(String propertySeparator)
Set the property separator

Parameters:
propertySeparator -

propertySeparator

public TimeoutBehaviorConfiguration propertySeparator(String value)
Set the property separator

Parameters:
value -
Returns:
this instance

clone

public Object clone()
             throws CloneNotSupportedException

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

ehcache

Copyright 2001-2015, Terracotta, Inc.