|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LocalPersistenceService
Service to provide persistence context to caches requiring it. Will be used by caches with a disk store, whether or not the data should survive a program restart.
| Nested Class Summary | |
|---|---|
static interface |
LocalPersistenceService.PersistenceSpaceIdentifier
An identifier for an existing persistence space. |
| Method Summary | |
|---|---|
FileBasedPersistenceContext |
createPersistenceContextWithin(LocalPersistenceService.PersistenceSpaceIdentifier space,
java.lang.String name)
Creates a new persistence context within the given space. |
void |
destroyAllPersistenceSpaces()
Destroys all persistence spaces Note that this method can be called without creating the persistence space beforehand in the same JVM. |
void |
destroyPersistenceSpace(java.lang.String name)
Destroys the persistence space with the given name. |
LocalPersistenceService.PersistenceSpaceIdentifier |
getOrCreatePersistenceSpace(java.lang.String name)
Retrieves an existing or creates a new persistence space |
| Methods inherited from interface org.ehcache.spi.service.Service |
|---|
start, stop |
| Method Detail |
|---|
LocalPersistenceService.PersistenceSpaceIdentifier getOrCreatePersistenceSpace(java.lang.String name)
throws CachePersistenceException
name - the name to be used for the persistence space
LocalPersistenceService.PersistenceSpaceIdentifier
CachePersistenceException - if the persistence space cannot be created
void destroyPersistenceSpace(java.lang.String name)
throws CachePersistenceException
name - the name of the persistence context
CachePersistenceException - if the persistence space cannot be destroyed
FileBasedPersistenceContext createPersistenceContextWithin(LocalPersistenceService.PersistenceSpaceIdentifier space,
java.lang.String name)
throws CachePersistenceException
space - space to create withinname - name of the context to create
FileBasedPersistenceContext
CachePersistenceExceptionvoid destroyAllPersistenceSpaces()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||