public class PersistenceConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PersistenceConfiguration.Strategy
Enumeration of the legal persistence strategies
|
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_SYNCHRONOUS_WRITES
Default synchronous writes setting
|
Constructor and Description |
---|
PersistenceConfiguration() |
Modifier and Type | Method and Description |
---|---|
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
|
public static final boolean DEFAULT_SYNCHRONOUS_WRITES
public PersistenceConfiguration.Strategy getStrategy()
public void setStrategy(String strategy)
strategy
- the persistence strategypublic PersistenceConfiguration strategy(PersistenceConfiguration.Strategy strategy)
strategy
- the persistence strategypublic PersistenceConfiguration strategy(String strategy)
strategy
- the persistence strategypublic boolean getSynchronousWrites()
public void setSynchronousWrites(boolean synchronousWrites)
synchronousWrites
- the persistence write modepublic PersistenceConfiguration synchronousWrites(boolean synchronousWrites)
synchronousWrites
- the persistence write modeCopyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.