java.lang.Cloneable
public class EventCacheItem
extends java.lang.Object
implements java.lang.Cloneable
CacheItem
.
Contains basic information of an item present in the cacheModifier and Type | Method | Description |
---|---|---|
java.lang.Object |
clone() |
Clones the event cache item instance.
|
CacheItemPriority |
getCacheItemPriority() |
Gets CacheItemPriority of the item present in the cache.
|
CacheItemVersion |
getCacheItemVersion() |
Gets the ItemVersion of the item.
|
com.alachisoft.ncache.common.caching.EntryType |
getEntryType() |
Gets the EntryType associated with the EventCacheItem.
|
java.lang.String |
getGroup() |
Gets the group associated with the EventCacheItem.
|
boolean |
getResyncExpiredItems() |
Specifies whether the items are to be resynced on expiration or not.
|
ResyncOptions |
getResyncOptions() |
ResyncOptions contain information whether the items are to be ReSynced at expiry.
|
<T> T |
getValue(java.lang.Class<?> cls) |
Will contain the value present in the cache, but only if the event was registered against
EventDataFilter.Metadata or EventDataFilter.DataWithMetadata, otherwise it will be null.
|
public final <T> T getValue(java.lang.Class<?> cls)
T
- Specifies the type of value obtained from the EventCacheItem.cls
- Specifies the class of value obtained from the EventCacheItem.public final CacheItemPriority getCacheItemPriority()
public ResyncOptions getResyncOptions()
public final boolean getResyncExpiredItems()
public final java.lang.String getGroup()
public final CacheItemVersion getCacheItemVersion()
public com.alachisoft.ncache.common.caching.EntryType getEntryType()
public final java.lang.Object clone()
clone
in class java.lang.Object
Cloneable