|
|||||||||
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 |
destroyAll()
Destroys all persistence spaces Note that this method can be called without creating the persistence space beforehand in the same JVM. |
LocalPersistenceService.PersistenceSpaceIdentifier |
getOrCreatePersistenceSpace(java.lang.String name)
Retrieves an existing or creates a new persistence space |
Methods inherited from interface org.ehcache.spi.service.PersistableResourceService |
---|
additionalConfigurationsForPool, create, destroy, handlesResourceType |
Methods inherited from interface org.ehcache.spi.service.MaintainableService |
---|
startForMaintenance |
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 createdFileBasedPersistenceContext createPersistenceContextWithin(LocalPersistenceService.PersistenceSpaceIdentifier space, java.lang.String name) throws CachePersistenceException
space
- space to create withinname
- name of the context to create
FileBasedPersistenceContext
CachePersistenceException
void destroyAll()
destroyAll
in interface PersistableResourceService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |