public class DefaultDiskResourceService
extends java.lang.Object
implements org.ehcache.core.spi.service.DiskResourceService
DiskResourceService which can be used explicitly when
persistent user managed caches are desired.| Constructor and Description |
|---|
DefaultDiskResourceService() |
| Modifier and Type | Method and Description |
|---|---|
org.ehcache.core.spi.service.FileBasedPersistenceContext |
createPersistenceContextWithin(org.ehcache.spi.persistence.PersistableResourceService.PersistenceSpaceIdentifier<?> identifier,
java.lang.String name) |
void |
destroy(java.lang.String name) |
void |
destroyAll() |
org.ehcache.spi.persistence.PersistableResourceService.PersistenceSpaceIdentifier<org.ehcache.core.spi.service.DiskResourceService> |
getPersistenceSpaceIdentifier(java.lang.String name,
org.ehcache.config.CacheConfiguration<?,?> config) |
org.ehcache.spi.persistence.StateRepository |
getStateRepositoryWithin(org.ehcache.spi.persistence.PersistableResourceService.PersistenceSpaceIdentifier<?> identifier,
java.lang.String name) |
boolean |
handlesResourceType(org.ehcache.config.ResourceType<?> resourceType) |
void |
releasePersistenceSpaceIdentifier(org.ehcache.spi.persistence.PersistableResourceService.PersistenceSpaceIdentifier<?> identifier) |
void |
start(org.ehcache.spi.service.ServiceProvider<org.ehcache.spi.service.Service> serviceProvider) |
void |
startForMaintenance(org.ehcache.spi.service.ServiceProvider<? super org.ehcache.spi.service.MaintainableService> serviceProvider,
org.ehcache.spi.service.MaintainableService.MaintenanceScope maintenanceScope) |
void |
stop() |
public void start(org.ehcache.spi.service.ServiceProvider<org.ehcache.spi.service.Service> serviceProvider)
start in interface org.ehcache.spi.service.Servicepublic void startForMaintenance(org.ehcache.spi.service.ServiceProvider<? super org.ehcache.spi.service.MaintainableService> serviceProvider,
org.ehcache.spi.service.MaintainableService.MaintenanceScope maintenanceScope)
startForMaintenance in interface org.ehcache.spi.service.MaintainableServicepublic void stop()
stop in interface org.ehcache.spi.service.Servicepublic boolean handlesResourceType(org.ehcache.config.ResourceType<?> resourceType)
handlesResourceType in interface org.ehcache.spi.persistence.PersistableResourceServicepublic org.ehcache.spi.persistence.PersistableResourceService.PersistenceSpaceIdentifier<org.ehcache.core.spi.service.DiskResourceService> getPersistenceSpaceIdentifier(java.lang.String name,
org.ehcache.config.CacheConfiguration<?,?> config)
throws org.ehcache.CachePersistenceException
getPersistenceSpaceIdentifier in interface org.ehcache.spi.persistence.PersistableResourceServiceorg.ehcache.CachePersistenceExceptionpublic void releasePersistenceSpaceIdentifier(org.ehcache.spi.persistence.PersistableResourceService.PersistenceSpaceIdentifier<?> identifier)
throws org.ehcache.CachePersistenceException
releasePersistenceSpaceIdentifier in interface org.ehcache.spi.persistence.PersistableResourceServiceorg.ehcache.CachePersistenceExceptionpublic void destroy(java.lang.String name)
destroy in interface org.ehcache.spi.persistence.PersistableResourceServicepublic void destroyAll()
destroyAll in interface org.ehcache.spi.persistence.PersistableResourceServicepublic org.ehcache.spi.persistence.StateRepository getStateRepositoryWithin(org.ehcache.spi.persistence.PersistableResourceService.PersistenceSpaceIdentifier<?> identifier,
java.lang.String name)
throws org.ehcache.CachePersistenceException
getStateRepositoryWithin in interface org.ehcache.spi.persistence.PersistableResourceServiceorg.ehcache.CachePersistenceExceptionpublic org.ehcache.core.spi.service.FileBasedPersistenceContext createPersistenceContextWithin(org.ehcache.spi.persistence.PersistableResourceService.PersistenceSpaceIdentifier<?> identifier,
java.lang.String name)
throws org.ehcache.CachePersistenceException
createPersistenceContextWithin in interface org.ehcache.core.spi.service.DiskResourceServiceorg.ehcache.CachePersistenceException