Class ExtensibleDependency
- java.lang.Object
-
- com.alachisoft.ncache.runtime.dependencies.CacheDependency
-
- com.alachisoft.ncache.runtime.dependencies.ExtensibleDependency
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
BulkExtensibleDependency
public abstract class ExtensibleDependency extends CacheDependency
ExtensibleDependency is an abstract class extended if Custom dependency is required.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExtensibleDependency()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.List<CacheDependency>getDependencies()Contains the list of dependencies for the CacheItem.abstract booleanhasChanged()hasChanged method is set true if item is updated, and it also needs to be updated in the cache.abstract booleaninitialize()Initializes the ExtensibleDependency.-
Methods inherited from class com.alachisoft.ncache.runtime.dependencies.CacheDependency
dispose
-
-
-
-
Method Detail
-
initialize
public abstract boolean initialize()
Initializes the ExtensibleDependency.- Returns:
- True/False for successful/unsuccessful initialization.
-
hasChanged
public abstract boolean hasChanged()
hasChanged method is set true if item is updated, and it also needs to be updated in the cache.- Returns:
- True, if item also needs to be updated in the cache, otherwise false.
-
getDependencies
public final java.util.List<CacheDependency> getDependencies()
Contains the list of dependencies for the CacheItem.- Overrides:
getDependenciesin classCacheDependency- Returns:
- The list of dependencies associated with the CacheItem.
-
-