I have an interface which has these methods about an entry in cache (Key,Value) i need to write a class which gets these stats to us like this.
public interface CacheEntry{
public long getCreationTime();
public long getExpirationTime();
public long getLastAccessTime();
public long getLastUpdateTime();
public long getVersion();
public boolean isValid();
}
from the input we give of a Jboss Tree Cache which contains our particular entry(key,value). Can any one please let me know how this can be achieved. Thanks in advance.
Regards
A lot of this data is external to a node. For example, the expiration time of a node is managed by the eviction RegionManager for an Fqn.
You may want to manage this data yourself by creating a TreeCacheListener and attaching it to the TreeCache.