ANNOTATIONS_PROPERTY_NAME
Modifier and Type | Method and Description |
---|---|
long |
getMaxIdleTime()
Returns a scalar value for the maximum amount of time that an instance should be allowed to be idle
|
TimeUnit |
getTimeUnit()
Returns a
TimeUnit that qualifies the getMaxIdleTime() value |
boolean |
isExpired(long lastUsed,
TimeUnit timeUnit)
Determines if an instance should be expired based on the last time it was used.
|
getAnnotation, getAnnotations, getLocation, getRootContainerLocation, setAnnotations
boolean isExpired(long lastUsed, TimeUnit timeUnit)
lastUsed
- a scalar time valuetimeUnit
- a TimeUnit
that qualifies the lastUsed
true
if expiration should take place. false
otherwise.long getMaxIdleTime()
TimeUnit getTimeUnit()
TimeUnit
that qualifies the getMaxIdleTime()
valueCopyright © 2018. All rights reserved.