|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.servingxml.io.cache.ExpirableFamily
public class ExpirableFamily
Implements a family of expirables.
| Field Summary |
|---|
| Fields inherited from interface com.servingxml.io.cache.Expirable |
|---|
IMMEDIATE_EXPIRY, NEVER_EXPIRES |
| Constructor Summary | |
|---|---|
ExpirableFamily()
|
|
| Method Summary | |
|---|---|
void |
addExpirable(Expirable expirable)
|
long |
getLastModified(long timestamp)
Returns the last modified date. |
boolean |
hasExpired(long timestamp)
Called by the cache manager when it is processing a validation event that this resource state can receive. |
boolean |
immediateExpiry()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpirableFamily()
| Method Detail |
|---|
public void addExpirable(Expirable expirable)
public long getLastModified(long timestamp)
ExpirableA concrete subclass must provide an implementation of this method to indicate whether the cached resource has changed. It may be called often, so it should execute quickly.
getLastModified in interface Expirablepublic boolean hasExpired(long timestamp)
ExpirableA concrete subclass must provide an implementation of this method to indicate whether the cached resource has expired. It may be called often, so it should execute quickly.
hasExpired in interface Expirablepublic boolean immediateExpiry()
immediateExpiry in interface Expirable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||