public interface ExpirationPolicy
extends org.mule.runtime.api.meta.AnnotatedObject
| 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.
|
boolean isExpired(long lastUsed,
TimeUnit timeUnit)
lastUsed - a scalar time valuetimeUnit - a TimeUnit that qualifies the lastUsedtrue if expiration should take place. false otherwise.long getMaxIdleTime()
TimeUnit getTimeUnit()
TimeUnit that qualifies the getMaxIdleTime() valueCopyright © 2017 MuleSoft, Inc.. All rights reserved.