|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.config.NonstopConfiguration
public class NonstopConfiguration
Configuration class of nonstop caches
Field Summary | |
---|---|
static String |
BULK_OPS_TIMEOUT_MULTIPLY_FACTOR
System Property name for bulk operations multiply factor |
static int |
DEFAULT_BULK_OP_TIMEOUT_FACTOR
Default value of timeout multiplication factor for bulk operations like removeAll or size |
static boolean |
DEFAULT_ENABLED
Default value of nonstop attribute |
static boolean |
DEFAULT_IMMEDIATE_TIMEOUT
Default value of immediateTimeout attribute |
static int |
DEFAULT_SEARCH_TIMEOUT_MILLIS
Default value of searchTimeoutMillis attribute |
static TimeoutBehaviorConfiguration |
DEFAULT_TIMEOUT_BEHAVIOR
Default value of timeoutBehavior attribute |
static int |
DEFAULT_TIMEOUT_MILLIS
Default value of timeoutMillis attribute |
Constructor Summary | |
---|---|
NonstopConfiguration()
|
Method Summary | |
---|---|
void |
addTimeoutBehavior(TimeoutBehaviorConfiguration timeoutBehavior)
Set the value of timeoutBehavior |
NonstopConfiguration |
clone()
|
NonstopConfiguration |
enabled(boolean nonstop)
Set the value of nonstop |
boolean |
equals(Object obj)
|
void |
freezeConfig()
Freeze the config. |
int |
getBulkOpsTimeoutMultiplyFactor()
returns the time out multiplication factor for bulk cache operations |
long |
getSearchTimeoutMillis()
Returns the value of the search timeout in milliseconds |
TimeoutBehaviorConfiguration |
getTimeoutBehavior()
Returns value of timeoutBehavior configured |
long |
getTimeoutMillis()
Returns the value of timeout in milliseconds |
int |
hashCode()
|
NonstopConfiguration |
immediateTimeout(boolean immediateTimeout)
Set the value of immediateTimeout |
boolean |
isEnabled()
Returns true if nonstop is enabled in config |
boolean |
isImmediateTimeout()
Returns true if immediateTimeout is set to true |
NonstopConfiguration |
searchTimeoutMillis(long searchTimeoutMillis)
Set the value of the search timeout |
void |
setBulkOpsTimeoutMultiplyFactor(int bulkOpsTimeoutMultiplyFactor)
Sets the value of the multiplication factor for bulk cache operations |
void |
setEnabled(boolean enabled)
Set the value of nonstop is enabled or not |
void |
setImmediateTimeout(boolean immediateTimeout)
Set the value of immediateTimeout |
void |
setSearchTimeoutMillis(long searchTimeoutMillis)
Set the value of the search timeout |
void |
setTimeoutMillis(long timeoutMillis)
Set the value of timeoutMillis |
NonstopConfiguration |
timeoutBehavior(TimeoutBehaviorConfiguration timeoutBehavior)
Set the value of timeoutBehavior |
NonstopConfiguration |
timeoutMillis(long timeoutMillis)
Set the value of timeoutMillis |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BULK_OPS_TIMEOUT_MULTIPLY_FACTOR
public static final boolean DEFAULT_ENABLED
public static final boolean DEFAULT_IMMEDIATE_TIMEOUT
public static final int DEFAULT_TIMEOUT_MILLIS
public static final int DEFAULT_SEARCH_TIMEOUT_MILLIS
public static final int DEFAULT_BULK_OP_TIMEOUT_FACTOR
public static final TimeoutBehaviorConfiguration DEFAULT_TIMEOUT_BEHAVIOR
Constructor Detail |
---|
public NonstopConfiguration()
Method Detail |
---|
public void freezeConfig()
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- the new valuepublic NonstopConfiguration enabled(boolean nonstop)
nonstop
-
public boolean isImmediateTimeout()
public void setImmediateTimeout(boolean immediateTimeout)
immediateTimeout
- the new valuepublic NonstopConfiguration immediateTimeout(boolean immediateTimeout)
immediateTimeout
-
public long getTimeoutMillis()
public void setTimeoutMillis(long timeoutMillis)
timeoutMillis
- the new valuepublic long getSearchTimeoutMillis()
public void setSearchTimeoutMillis(long searchTimeoutMillis)
searchTimeoutMillis
- the new valuepublic int getBulkOpsTimeoutMultiplyFactor()
public void setBulkOpsTimeoutMultiplyFactor(int bulkOpsTimeoutMultiplyFactor)
bulkOpsTimeoutMultiplyFactor
- the new valuepublic NonstopConfiguration timeoutMillis(long timeoutMillis)
timeoutMillis
- the new value
public NonstopConfiguration searchTimeoutMillis(long searchTimeoutMillis)
searchTimeoutMillis
- the new value of the search timeout in milliseconds
public TimeoutBehaviorConfiguration getTimeoutBehavior()
public void addTimeoutBehavior(TimeoutBehaviorConfiguration timeoutBehavior)
timeoutBehavior
- public NonstopConfiguration timeoutBehavior(TimeoutBehaviorConfiguration timeoutBehavior)
timeoutBehavior
-
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public NonstopConfiguration clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |