public interface PersistableResourceService extends MaintainableService
ResourceType which is
persistable.| Modifier and Type | Method and Description |
|---|---|
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.
|
startForMaintenanceboolean handlesResourceType(ResourceType<?> resourceType)
resourceType - the resource type to handletrue if this service handles this resource type, false otherwisejava.util.Collection<ServiceConfiguration<?>> additionalConfigurationsForPool(java.lang.String alias, ResourcePool pool) throws CachePersistenceException
alias - the alias contextpool - the resource poolCollection of ServiceConfiguration, can be emptyCachePersistenceException - in case of a persistence related problemjava.lang.IllegalArgumentException - if handlesResourceType(pool.getType) != truevoid destroy(java.lang.String name)
throws CachePersistenceException
name - the name of the persistence contextCachePersistenceException - if the persistence space cannot be destroyedvoid create()
void destroyAll()