Class ProviderCacheItem
- java.lang.Object
-
- com.alachisoft.ncache.runtime.datasourceprovider.ProviderItemBase
-
- com.alachisoft.ncache.runtime.datasourceprovider.ProviderCacheItem
-
public class ProviderCacheItem extends ProviderItemBase
ProviderCacheItem is just like a CacheItem , but it has some limited fields.
-
-
Constructor Summary
Constructors Constructor Description ProviderCacheItem(java.lang.Object value)
Initializes an instance of ProviderCacheItem.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
getValue(java.lang.Class<?> cls)
Gets the value of the ProviderCacheItem.void
setValue(java.lang.Object value)
Sets the value of the ProviderCacheItem.-
Methods inherited from class com.alachisoft.ncache.runtime.datasourceprovider.ProviderItemBase
getDependency, getExpiration, getGroup, getIsJavaReadThrough, getItemPriority, getNamedTags, getResyncItemOnExpiration, getResyncOptions, getResyncProviderName, getTags, setDependency, setExpiration, setGroup, setIsJavaReadThrough, setItemPriority, setNamedTags, setResyncOptions, setTags
-
-
-
-
Method Detail
-
getValue
public <T> T getValue(java.lang.Class<?> cls) throws OperationFailedException
Gets the value of the ProviderCacheItem.- Type Parameters:
T
- Specifies the type of value obtained from the ProviderCacheItem.- Parameters:
cls
- Specifies the class of value obtained from the ProviderCacheItem.- Returns:
- The value of the ProviderCacheItem.
- Throws:
OperationFailedException
-
setValue
public void setValue(java.lang.Object value)
Sets the value of the ProviderCacheItem.- Parameters:
value
- The object that is to be set as ProviderCacheItem value.
-
-