Class ProviderItemBase
- java.lang.Object
-
- com.alachisoft.ncache.runtime.datasourceprovider.ProviderItemBase
-
- Direct Known Subclasses:
ProviderCacheItem,ProviderDataStructureItem
public class ProviderItemBase extends java.lang.ObjectProviderCacheItem is just like a CacheItem , but it has some limited fields
-
-
Constructor Summary
Constructors Constructor Description ProviderItemBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetAbsoluteExpiration()bytegetBitSet()CacheDependencygetDependency()Gets the Cache Dependency instance that contains all dependencies associated with provider cache item.ExpirationgetExpiration()Gets the expiration mechanism for provider cache item.java.lang.StringgetGroup()Gets the group associated with the provider cache item.booleangetIsJavaReadThrough()Gets a boolean value that indicates that whether ReadThruProvider is Java based or not.CacheItemPrioritygetItemPriority()Gets the relative priority for provider cache item which is kept under consideration whenever cache starts to free up space and evicts items.NamedTagsDictionarygetNamedTags()Gets the NamedTags information associated with the provider cache item, it can be queried on the basis of NamedTags provided.booleangetResyncItemOnExpiration()Gets the flag which indicates whether item should be reloaded on expiration if ReadThru provider is specified.ResyncOptionsgetResyncOptions()Gets the ResyncOptions specific to the provider cache item.java.lang.StringgetResyncProviderName()Gets the ReadThru provider name for re-synchronization of cache.TimeSpangetSlidingExpiration()java.util.List<Tag>getTags()Gets the tags information associated with the provider cache item, it can be queried on the basis of Tags provided.voidsetBitSet(byte value)voidsetDependency(CacheDependency value)Sets the Cache Dependency instance that contains all dependencies associated with provider cache item.voidsetExpiration(Expiration value)Sets the expiration mechanism for provider cache item.voidsetGroup(java.lang.String value)Sets the group associated with the provider cache item.voidsetIsJavaReadThrough(boolean value)Sets a boolean value that indicates that whether ReadThruProvider is Java based or not.voidsetItemPriority(CacheItemPriority value)Sets the relative priority for provider cache item which is kept under consideration whenever cache starts to free up space and evicts items.voidsetNamedTags(NamedTagsDictionary value)Sets the NamedTags information associated with the provider item, it can be queried on the basis of NamedTags provided.voidsetResyncOptions(ResyncOptions value)Sets the ResyncOptions specific to the provider cache item.voidsetTags(java.util.List<Tag> value)Sets the tags information associated with the provider cache item, it can be queried on the basis of Tags provided.
-
-
-
Method Detail
-
getBitSet
public final byte getBitSet()
-
setBitSet
public final void setBitSet(byte value)
-
getGroup
public final java.lang.String getGroup()
Gets the group associated with the provider cache item. It can be queryed on the basis of Groups.- Returns:
- The group associated with provider cache item.
-
setGroup
public final void setGroup(java.lang.String value)
Sets the group associated with the provider cache item. It can be queryed on the basis of Groups.- Parameters:
value- The group to be associated with provider cache item.
-
getTags
public final java.util.List<Tag> getTags()
Gets the tags information associated with the provider cache item, it can be queried on the basis of Tags provided.- Returns:
- List of Tags associated with provider cache item.
-
setTags
public final void setTags(java.util.List<Tag> value)
Sets the tags information associated with the provider cache item, it can be queried on the basis of Tags provided.- Parameters:
value- List of Tags to be associated with provider cache item.
-
getNamedTags
public final NamedTagsDictionary getNamedTags()
Gets the NamedTags information associated with the provider cache item, it can be queried on the basis of NamedTags provided.- Returns:
- NamedTags associated with provider cache item.
-
setNamedTags
public final void setNamedTags(NamedTagsDictionary value)
Sets the NamedTags information associated with the provider item, it can be queried on the basis of NamedTags provided.- Parameters:
value- NamedTags to be associated with provider cache item.
-
getResyncItemOnExpiration
public final boolean getResyncItemOnExpiration()
Gets the flag which indicates whether item should be reloaded on expiration if ReadThru provider is specified.- Returns:
- True if item is to be resynced on expiration otherwise false.
-
getDependency
public final CacheDependency getDependency()
Gets the Cache Dependency instance that contains all dependencies associated with provider cache item.- Returns:
- The Cache Dependency instance associated with provider cache item.
-
setDependency
public final void setDependency(CacheDependency value)
Sets the Cache Dependency instance that contains all dependencies associated with provider cache item.- Parameters:
value- The Cache Dependency instance to be associated with provider cache item.
-
getItemPriority
public final CacheItemPriority getItemPriority()
Gets the relative priority for provider cache item which is kept under consideration whenever cache starts to free up space and evicts items.- Returns:
- CacheItemPriority associated with provider cache item.
-
setItemPriority
public final void setItemPriority(CacheItemPriority value)
Sets the relative priority for provider cache item which is kept under consideration whenever cache starts to free up space and evicts items.- Parameters:
value- CacheItemPriority to be associated with provider cache item.
-
getResyncProviderName
public final java.lang.String getResyncProviderName()
Gets the ReadThru provider name for re-synchronization of cache.- Returns:
- The resync provider name.
-
getIsJavaReadThrough
public final boolean getIsJavaReadThrough()
Gets a boolean value that indicates that whether ReadThruProvider is Java based or not.- Returns:
- True if ReadThruProvider is java based otherwise false.
-
setIsJavaReadThrough
public final void setIsJavaReadThrough(boolean value)
Sets a boolean value that indicates that whether ReadThruProvider is Java based or not.- Parameters:
value- A boolean value to specify that provider is Java based or not.
-
getExpiration
public final Expiration getExpiration()
Gets the expiration mechanism for provider cache item.- Returns:
Expirationinstance that contains info about provider cache item expiration mechanism.
-
setExpiration
public final void setExpiration(Expiration value)
Sets the expiration mechanism for provider cache item.- Parameters:
value- Expiration object that specifies the expiration mechanism for provider cache item.
-
getResyncOptions
public final ResyncOptions getResyncOptions()
Gets the ResyncOptions specific to the provider cache item.- Returns:
- ResyncOptions specific to the provider cache item.
-
getAbsoluteExpiration
public java.util.Date getAbsoluteExpiration()
-
getSlidingExpiration
public TimeSpan getSlidingExpiration()
-
setResyncOptions
public final void setResyncOptions(ResyncOptions value)
Sets the ResyncOptions specific to the provider cache item.- Parameters:
value- ResyncOptions specific to the provider cache item.
-
-