Show / Hide Table of Contents

Interface IConfigurableCacheFactory

An interface for XML-driven cache factory.

Inherited Members
IXmlConfigurable.Config
Namespace: Tangosol.Net
Assembly: Coherence.dll
Syntax
public interface IConfigurableCacheFactory : IXmlConfigurable

Methods

DestroyCache(INamedCache)

Releases and destroys the specified INamedCache.

Declaration
void DestroyCache(INamedCache cache)
Parameters
Type Name Description
INamedCache cache

The INamedCache object to be destroyed.

Remarks

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 resources will be released.

See Also
ReleaseCache(INamedCache)

EnsureCache(string)

Ensure a cache for the given name using the corresponding XML configuration.

Declaration
INamedCache EnsureCache(string cacheName)
Parameters
Type Name Description
string cacheName

The cache name.

Returns
Type Description
INamedCache

An INamedCache created according to the configuration XML.

EnsureService(string)

Ensure a service for the given name using the corresponding XML configuration.

Declaration
IService EnsureService(string serviceName)
Parameters
Type Name Description
string serviceName

The service name.

Returns
Type Description
IService

An IService created according to the configuration XML.

ReleaseCache(INamedCache)

Release local resources associated with the specified instance of the cache.

Declaration
void ReleaseCache(INamedCache cache)
Parameters
Type Name Description
INamedCache cache

The INamedCache object to be released.

Remarks

This invalidates a reference obtained from the factory.

Releasing an INamedCache reference makes it no longer usable, but does not affect the content of the cache. In other words, all other references to the cache will still be valid, and the cache data is not affected by releasing the reference.

The reference that is released using this method can no longer be used; any attempt to use the reference will result in an exception.

See Also
DestroyCache(INamedCache)

Shutdown()

Release all resources allocated by this cache factory.

Declaration
void Shutdown()

See Also

DefaultConfigurableCacheFactory
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.