Class CacheDependency
- java.lang.Object
-
- com.alachisoft.ncache.runtime.dependencies.CacheDependency
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AggregateCacheDependency,CustomDependency,DBCacheDependency,ExtensibleDependency,FileDependency,KeyDependency,OracleCacheDependency,SqlCacheDependency
public class CacheDependency extends java.lang.Object implements java.io.SerializableTracks cache dependencies, which can be files, directories, or keys to other objects in application's Cache. This class cannot be inherited.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheDependency()Default constructor for CacheDependency class.CacheDependency(CacheDependency dependency)Adds the specified dependency to the list of existing dependencies.CacheDependency(ExtensibleDependency extensibleDependency)Creates a CacheDependency instance from extensible dependency.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Releases the resources used by the "CacheDependency" object.java.util.List<CacheDependency>getDependencies()Contains the List of Dependencies for the Cache Item.
-
-
-
Constructor Detail
-
CacheDependency
public CacheDependency()
Default constructor for CacheDependency class.
-
CacheDependency
public CacheDependency(ExtensibleDependency extensibleDependency)
Creates a CacheDependency instance from extensible dependency.- Parameters:
extensibleDependency- ExtensibleDependency instance.
-
CacheDependency
public CacheDependency(CacheDependency dependency) throws java.lang.IllegalArgumentException
Adds the specified dependency to the list of existing dependencies.- Parameters:
dependency- The dependency to be added.- Throws:
java.lang.IllegalArgumentException
-
-
Method Detail
-
getDependencies
public java.util.List<CacheDependency> getDependencies()
Contains the List of Dependencies for the Cache Item.- Returns:
- The list of dependencies associated with the cache item.
-
dispose
public void dispose()
Releases the resources used by the "CacheDependency" object.
-
-