org.ajax4jsf.cache
Interface CacheEntry

All Superinterfaces:
java.util.Map.Entry

public interface CacheEntry
extends java.util.Map.Entry

CacheEntry

Author:
Brian Goetz

Method Summary
 long getCost()
           
 long getCreationTime()
           
 long getExpirationTime()
           
 int getHits()
           
 long getLastAccessTime()
           
 long getLastUpdateTime()
           
 long getVersion()
          Returns a version counter.
 boolean isValid()
           
 
Methods inherited from interface java.util.Map.Entry
equals, getKey, getValue, hashCode, setValue
 

Method Detail

getHits

int getHits()

getLastAccessTime

long getLastAccessTime()

getLastUpdateTime

long getLastUpdateTime()

getCreationTime

long getCreationTime()

getExpirationTime

long getExpirationTime()

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 clusteres or threads, so an incrementing counter is often safer.


isValid

boolean isValid()

getCost

long getCost()


Copyright © 2010. All Rights Reserved.