|
|||||||||
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.
Method Summary | |
---|---|
FileBasedPersistenceContext |
createPersistenceContext(java.lang.Object identifier,
Store.PersistentStoreConfiguration<?,?,?> storeConfiguration)
Creates a new persistence context |
void |
destroyAllPersistenceContext()
Destroys all persistence context Note that this method can be called without creating the persistence context beforehand in the same JVM. |
void |
destroyPersistenceContext(java.lang.Object identifier)
Destroys the persistence context with the given identifier. |
Methods inherited from interface org.ehcache.spi.service.Service |
---|
start, stop |
Method Detail |
---|
FileBasedPersistenceContext createPersistenceContext(java.lang.Object identifier, Store.PersistentStoreConfiguration<?,?,?> storeConfiguration) throws CachePersistenceException
identifier
- the identifier to be used for the persistence contextstoreConfiguration
- the configuration of the Store
that will use the persistence context
FileBasedPersistenceContext
CachePersistenceException
- if the persistence context cannot be createdvoid destroyPersistenceContext(java.lang.Object identifier) throws CachePersistenceException
identifier
- the identifier of the persistence context
CachePersistenceException
- if the persistence context cannot be destroyedvoid destroyAllPersistenceContext()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |