public abstract class CachedExternalOpValue extends Object implements ExternalOpValue
ExternalOpValues to be computed on as as needed basis and also cache the values for a certain length of
time.| Modifier | Constructor and Description |
|---|---|
protected |
CachedExternalOpValue()
By default 1 minute is the cache time out value
|
protected |
CachedExternalOpValue(long cacheTimeout,
TimeUnit cacheTimeoutUnits)
Creates a CachedExternalOpValue where the cache time is the values specified.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract OpSnapshot |
computeValue()
This method is called to compute the value of the
CachedExternalOpValue |
OpSnapshot |
getSnapshot() |
protected CachedExternalOpValue()
protected CachedExternalOpValue(long cacheTimeout,
TimeUnit cacheTimeoutUnits)
cacheTimeout - the cache time out valuecacheTimeoutUnits - the units of the cache time our valueprotected abstract OpSnapshot computeValue()
CachedExternalOpValue
This will be done because the cached value has expired and has since been requested via a call to getSnapshot()
public OpSnapshot getSnapshot()
getSnapshot in interface ExternalOpValueCopyright © 2016 Atlassian. All rights reserved.