ExpirationPolicy Interface
- public interface ExpirationPolicy
This interface contains the operations necessary to define an expiration policy.
The implementing classes determine the strategy used to determine whether or not
the policy has expired.
public void |
-
expire ()
- Forces the policy to expire.
|
public boolean |
-
hasExpired (Object target)
- Returns the expiration status of the policy.
|
expire() Method
public void expire()
Forces the policy to expire.
hasExpired(Object) Method
public boolean hasExpired(Object
target)
Returns the expiration status of the policy.
Parameters
-
target
- the expiration target.
Returns
- true if the policy has expired.