public interface CacheEntry<T>
CacheEntry.
To detect if an entry has expired a CacheEntryExpirator is used.| Modifier and Type | Method and Description |
|---|---|
String |
getETag()
Get the E-Tag, if there is any
|
long |
getExpirationTimestamp()
Get the expirationValue
|
<K> K |
getValue()
Get the real value of this entry.
|
boolean |
isExpired()
true if this
CacheEntry has Expired, otherwise false. |
void |
setEntryExpirator(CacheEntryExpirator expirator)
Set the
CacheEntryExpirator that is used in isExpired()
to determine if an CacheEntry is expired or not |
void |
setExpirationTimestamp(long expirationTimestamp)
Seht the expiration timestamp, when this entry will expires
|
long getExpirationTimestamp()
void setEntryExpirator(CacheEntryExpirator expirator)
CacheEntryExpirator that is used in isExpired()
to determine if an CacheEntry is expired or notexpirator - boolean isExpired()
CacheEntry has Expired, otherwise false. This method
calls CacheEntryExpirator#isExpired(Object) to determine if the
entry has expired or not.void setExpirationTimestamp(long expirationTimestamp)
expirationTimestamp - <K> K getValue()
String getETag()
Copyright © 2015 Hannes Dorfmann. All rights reserved.