Package org.yamcs.parameter
Interface ParameterCache
- All Known Implementing Classes:
ArrayParameterCache
,ParameterCacheImpl
public interface ParameterCache
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Remove all the parameters from the cacheReturns 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)getAllValues
(Parameter p, long start, long stop) Same as above but return all values that have the generation time in the (start, stop] intervalReturns last cached value for parameter or null if there is no value in the cacheReturns cached value for parameter or an empty list if there is no value in the cachevoid
update
(Collection<ParameterValue> pvs) update the parameters in the cache
-
Method Details
-
update
update the parameters in the cache- Parameters:
pvs
- - parameter value list
-
getValues
Returns cached value for parameter or an empty list if there is no value in the cache- Parameters:
plist
-- Returns:
-
getLastValue
Returns last cached value for parameter or null if there is no value in the cache- Parameters:
p
- - parameter for which the last value is returned- Returns:
-
getAllValues
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)- Parameters:
p
- - parameter for which all values are returned- Returns:
- all values from the cache for the parameter or null if there is no value cached
-
getAllValues
Same as above but return all values that have the generation time in the (start, stop] interval- Parameters:
p
-start
-stop
-- Returns:
-
clear
void clear()Remove all the parameters from the cache
-