public class ExpireUsage extends ExpirationPredicate
expireMax <= 0 will never expire.
| Constructor and Description |
|---|
ExpireUsage(int max) |
| Modifier and Type | Method and Description |
|---|---|
ExpirationPredicate |
copy() |
int |
getExpireMax() |
String |
getType() |
int |
getUsage() |
long |
getValue() |
boolean |
isExpired()
true if this resource is no longer valid (has expired).
|
void |
touch()
Mark the resource as just having been used.
|
public ExpirationPredicate copy()
copy in class ExpirationPredicatepublic int getExpireMax()
public String getType()
getType in class ExpirationPredicatepublic int getUsage()
public long getValue()
getValue in class ExpirationPredicatepublic boolean isExpired()
IExpirationSupportpublic void touch()
IExpirationSupportCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.