|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Expirable
Defines an interface for a expirable.
The XXXExpirable
family (DynamicChangeable
,
StreamExpirable
, etc.) provide an interface for
last modified which is appropriate for a specific kind of resource
(dynamic, system, etc.). Implementations of Expirable
will adapt the specialized XXXExpirable
last modified interface to the
common Expirable
last modified interface.
Field Summary | |
---|---|
static Expirable |
IMMEDIATE_EXPIRY
A Expirable object whose hasExpired method always returns true . |
static Expirable |
NEVER_EXPIRES
A Expirable object whose hasExpired method always returns false . |
Method Summary | |
---|---|
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()
|
Field Detail |
---|
static final Expirable IMMEDIATE_EXPIRY
Expirable
object whose hasExpired
method always returns true
.
static final Expirable NEVER_EXPIRES
Expirable
object whose hasExpired
method always returns false
.
Method Detail |
---|
long getLastModified(long timestamp)
A 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.
boolean hasExpired(long timestamp)
A 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.
boolean immediateExpiry()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |