|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.config.PersistenceConfiguration
public class PersistenceConfiguration
Class to hold the persistence policy configuration.
| Nested Class Summary | |
|---|---|
static class |
PersistenceConfiguration.Strategy
Enumeration of the legal persistence strategies |
| Field Summary | |
|---|---|
static boolean |
DEFAULT_SYNCHRONOUS_WRITES
Default synchronous writes setting |
| Constructor Summary | |
|---|---|
PersistenceConfiguration()
|
|
| Method Summary | |
|---|---|
PersistenceConfiguration.Strategy |
getStrategy()
Gets the persistence strategy |
boolean |
getSynchronousWrites()
Gets the persistence write mode |
void |
setStrategy(String strategy)
Sets the persistence strategy |
void |
setSynchronousWrites(boolean synchronousWrites)
Sets the persistence write mode |
PersistenceConfiguration |
strategy(PersistenceConfiguration.Strategy strategy)
Builder method to set the persistence strategy |
PersistenceConfiguration |
strategy(String strategy)
Builder method to set the persistence strategy using a String object |
PersistenceConfiguration |
synchronousWrites(boolean synchronousWrites)
Builder method to set the persistence write mode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean DEFAULT_SYNCHRONOUS_WRITES
| Constructor Detail |
|---|
public PersistenceConfiguration()
| Method Detail |
|---|
public PersistenceConfiguration.Strategy getStrategy()
public void setStrategy(String strategy)
strategy - the persistence strategypublic PersistenceConfiguration strategy(PersistenceConfiguration.Strategy strategy)
strategy - the persistence strategy
public PersistenceConfiguration strategy(String strategy)
strategy - the persistence strategy
public boolean getSynchronousWrites()
public void setSynchronousWrites(boolean synchronousWrites)
synchronousWrites - the persistence write modepublic PersistenceConfiguration synchronousWrites(boolean synchronousWrites)
synchronousWrites - the persistence write mode
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||