|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurableCacheFactory
An interface for XML driven cache factory.
DefaultConfigurableCacheFactory
Method Summary | |
---|---|
void |
destroyCache(NamedCache cache) Release and destroy this instance of NamedCache. |
NamedCache |
ensureCache(String sCacheName, ClassLoader loader) Ensure a cache for the given name using the corresponding XML configuration. |
Service |
ensureService(String sServiceName) Ensure a service for the given name using the corresponding XML configuration. |
XmlElement |
getConfig() Obtain the factory configuration XML. |
void |
releaseCache(NamedCache cache) Release a cache and its associated resources. |
void |
setConfig(XmlElement xmlConfig) Specify the factory configuration XML. |
Method Detail |
---|
XmlElement getConfig()
getConfig
in interface XmlConfigurable
void setConfig(XmlElement xmlConfig)
setConfig
in interface XmlConfigurable
xmlConfig
- the configuration XMLNamedCache ensureCache(String sCacheName, 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(String sServiceName)
sServiceName
- the service name
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |