CacheFactory Class |
Namespace: Tangosol.Net
public abstract class CacheFactory
The CacheFactory type exposes the following members.
| Name | Description | |
|---|---|---|
| CacheFactory | Initializes a new instance of the CacheFactory class |
| Name | Description | |
|---|---|---|
| ConfigurableCacheFactory |
The IConfigurableCacheFactory singleton.
| |
| DefaultCacheConfig |
The default XML cache configuration.
| |
| DefaultCacheConfigPath |
The path to the default XML cache configuration.
| |
| DefaultCacheConfigResource |
The IResource for the default XML cache
configuration.
| |
| DefaultOperationalConfig |
The default XML operational configuration.
| |
| DefaultOperationalConfigPath |
The path to the default XML operational configuration.
| |
| DefaultOperationalConfigResource |
The IResource for the default XML operational
configuration.
| |
| DefaultPofConfig |
The default XML POF configuration.
| |
| DefaultPofConfigPath |
The path to the default XML POF configuration.
| |
| DefaultPofConfigResource |
The IResource for the default XML POF
configuration.
|
| Name | Description | |
|---|---|---|
| Configure(String, String) |
Configure the CacheFactory.
| |
| Configure(IConfigurableCacheFactory, IOperationalContext) |
Configure the CacheFactory.
| |
| Configure(IResource, IResource) |
Configure the CacheFactory.
| |
| Configure(IXmlElement, IXmlElement) |
Configure the CacheFactory.
| |
| DestroyCache |
Releases and destroys the specified INamedCache.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetCache |
Return an instance of a cache configured by the current
ConfigurableCacheFactory.
| |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetService |
Return an instance of a service configured by the current
ConfigurableCacheFactory.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsLogEnabled |
Return true if the Logger would log a message with the
given log level.
| |
| Log(Exception, CacheFactoryLogLevel) |
Log an exception using Coherence logging facility which is driven
by the "logging-config" element located in the coherence.xml
configuration file.
| |
| Log(String, CacheFactoryLogLevel) |
Log a message using Coherence logging facility which is driven by
the "logging-config" element located in the coherence.xml
configuration file.
| |
| Log(String, Exception, CacheFactoryLogLevel) |
Log a message and exception using Coherence logging facility
which is driven by the "logging-config" element located in the
coherence.xml configuration file.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| PreprocessProp |
Preprocess the Coherence properties specified either in the
application configuration or environment variables.
When both are specified, environment varialbe takes the precedence.
| |
| ReleaseCache |
Release local resources associated with the specified instance of
the cache.
| |
| Shutdown |
Shutdown all services.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
One of the most common functions provided by the CacheFactory is ability to obtain an instance of a cache. There are various cache services and cache topologies that are supported by Coherence.
To get a cache reference use the GetCache(String) method.
This approach that has a lot of advantages over service type specific methods described further below because:
When a cache is no longer used, it is preferrable to call ReleaseCache(INamedCache) to release the associated resources. To destroy all instances of the cache across the cluster, use DestroyCache(INamedCache).
Other services:
The following factory method returns an instance of Invocation service: