com.j_spaces.javax.cache
Interface CacheEntry

All Superinterfaces:
Map.Entry<Object,Object>

public interface CacheEntry
extends Map.Entry<Object,Object>

Each CacheEntry should implements this interface.

Since:
4.5

Method Summary
 long getVersion()
          Returns a version counter.
 
Methods inherited from interface java.util.Map.Entry
equals, getKey, getValue, hashCode, setValue
 

Method Detail

getVersion

long getVersion()
Returns a version counter. An implementation may use timestamps for this or an incrementing number. Timestamps usually have issues with granularity and are harder to use across clusters or threads, so an incrementing counter is often safer.