public class ArrayParameterCache extends Object implements ParameterCache
ParameterCacheImpl in case of large number of parameter values.| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove all the parameters from the cache
|
List<ParameterValue> |
getAllValues(Parameter pdef)
Returns all values from the cache for the parameter or null if there is no value cached
The parameter are returned in descending order (newest parameter is returned first)
|
List<ParameterValue> |
getAllValues(Parameter pdef,
long start,
long stop)
Same as above but return all values that have the generation time in the (start, stop] interval
|
ParameterValue |
getLastValue(Parameter pdef)
Returns last cached value for parameter or null if there is no value in the cache
|
ParameterValue |
getLastValue1(Parameter p) |
List<ParameterValue> |
getValues(List<Parameter> plist)
Returns cached value for parameter or an empty list if there is no value in the cache
|
void |
update(Collection<ParameterValue> pvs)
update the parameters in the cache
|
public void update(Collection<ParameterValue> pvs)
ParameterCacheupdate in interface ParameterCachepvs - - parameter value listpublic ParameterValue getLastValue(Parameter pdef)
ParameterCachegetLastValue in interface ParameterCachepdef - - parameter for which the last value is returnedpublic ParameterValue getLastValue1(Parameter p)
public List<ParameterValue> getValues(List<Parameter> plist)
ParameterCachegetValues in interface ParameterCachepublic List<ParameterValue> getAllValues(Parameter pdef)
ParameterCachegetAllValues in interface ParameterCachepdef - - parameter for which all values are returnedpublic List<ParameterValue> getAllValues(Parameter pdef, long start, long stop)
ParameterCachegetAllValues in interface ParameterCachepublic void clear()
ParameterCacheclear in interface ParameterCacheCopyright © 2018 Space Applications Services. All rights reserved.