|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PersistableResourceService
Specific interface for services that are dedicated to handling a ResourceType which is
persistable.
| Method Summary | |
|---|---|
java.util.Collection<ServiceConfiguration<?>> |
additionalConfigurationsForPool(java.lang.String alias,
ResourcePool pool)
Enables this service to create additional configurations to enable support of the passed in resource pool in the context of the given alias. |
void |
create()
Creates the persistent storage. |
void |
destroy(java.lang.String name)
Destroys the persistence space with the given name. |
void |
destroyAll()
Destroys all persistence spaces Note that this method can be called without creating the persistence space beforehand in the same JVM. |
boolean |
handlesResourceType(ResourceType resourceType)
Indicates whether this service handles the type of resource passed in. |
| Methods inherited from interface org.ehcache.spi.service.MaintainableService |
|---|
startForMaintenance |
| Methods inherited from interface org.ehcache.spi.service.Service |
|---|
start, stop |
| Method Detail |
|---|
boolean handlesResourceType(ResourceType resourceType)
resourceType - the resource type to handle
true if this service handles this resource type, false otherwise
java.util.Collection<ServiceConfiguration<?>> additionalConfigurationsForPool(java.lang.String alias,
ResourcePool pool)
throws CachePersistenceException
alias - the alias contextpool - the resource pool
Collection of ServiceConfiguration, can be empty
CachePersistenceException - in case of a persistence related problem
java.lang.IllegalArgumentException - if handlesResourceType(pool.getType) != true
void destroy(java.lang.String name)
throws CachePersistenceException
name - the name of the persistence context
CachePersistenceException - if the persistence space cannot be destroyedvoid create()
void destroyAll()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||