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 protected void
AddDependencies(CacheDependency[] dependencies)
protected void
DependencyDispose()
java.util.List<CacheDependency>
getDependencies()
Contains the List of Dependencies for the Cache Item.abstract boolean
hasChanged()
hasChanged method is set true if item is updated and it also needs to be updated in the cache.abstract boolean
initialize()
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 if initialization is successful otherwise false.
-
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 cache otherwise false.
-
AddDependencies
protected final void AddDependencies(CacheDependency[] dependencies)
- Overrides:
AddDependencies
in classCacheDependency
-
getDependencies
public final java.util.List<CacheDependency> getDependencies()
Contains the List of Dependencies for the Cache Item.- Overrides:
getDependencies
in classCacheDependency
- Returns:
- The list of dependencies associated with the cache item.
-
DependencyDispose
protected final void DependencyDispose()
- Overrides:
DependencyDispose
in classCacheDependency
-
-