|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurableCacheFactory
An interface for cache factory.
DefaultConfigurableCacheFactory
Method Summary | |
---|---|
void |
activate() Activate prepares the factory to be used within a container and should be called before any other factory method. |
void |
destroyCache(NamedCache cache) Release and destroy this instance of NamedCache. |
void |
dispose() Dispose of this factory. |
NamedCache |
ensureCache(java.lang.String sCacheName, java.lang.ClassLoader loader) Ensure a cache for the given name. |
Service |
ensureService(java.lang.String sServiceName) Ensure a service for the given name. |
InterceptorRegistry |
getInterceptorRegistry() Return the InterceptorRegistry for this factory. |
ResourceRegistry |
getResourceRegistry() Return the ResourceRegistry for this factory. |
void |
releaseCache(NamedCache cache) Release a cache and its associated resources. |
Method Detail |
---|
void activate()
java.lang.IllegalStateException
- if this factory has already been activatedvoid dispose()
getResourceRegistry()
. This factory may not be used after invoking dispose.java.lang.IllegalStateException
- if this factory is not activeNamedCache ensureCache(java.lang.String sCacheName, java.lang.ClassLoader loader)
sCacheName
- the cache nameloader
- ClassLoader that should be used to deserialize objects in the cachevoid releaseCache(NamedCache cache)
Releasing a cache makes it no longer usable, but does not affect the cache itself. In other words, all other references to the cache will still be valid, and the cache data is not affected by releasing the reference. Any attempt to use the released cache reference afterword will result in an exception.
cache
- the cache to releasevoid destroyCache(NamedCache cache)
Warning: This method is used to completely destroy the specified cache across the cluster. All references in the entire cluster to this cache will be invalidated, the cached data will be cleared, and all internal and associated resources will be released.
cache
- the cache to releaseService ensureService(java.lang.String sServiceName)
sServiceName
- the service nameInterceptorRegistry getInterceptorRegistry()
InterceptorRegistry
for this factory. EventInterceptor
s registered with this registry will be scoped to services and caches created by this factory.InterceptorRegistry
for this factoryResourceRegistry getResourceRegistry()
ResourceRegistry
for this factory.
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |