Package ch.psi.wica.services.channel
Class WicaChannelValueRateLimitingFilter
java.lang.Object
ch.psi.wica.services.channel.WicaChannelValueRateLimitingFilter
- All Implemented Interfaces:
WicaChannelValueFilter
@ThreadSafe
class WicaChannelValueRateLimitingFilter
extends Object
implements WicaChannelValueFilter
A filter that returns an output list with values taken from the input list
periodically according to the value's timestamp.
-
Constructor Summary
ConstructorsConstructorDescriptionWicaChannelValueRateLimitingFilter
(long samplingIntervalInMillis) Constructs a new instance which returns an output list containing the first input value and then subsequent values taken from the input list after the specified minimum sampling interval. -
Method Summary
Modifier and TypeMethodDescriptionapply
(List<WicaChannelValue> inputList) Transforms the values in the input apply to the output apply using some configurable filtering algorithm.toString()
-
Constructor Details
-
WicaChannelValueRateLimitingFilter
WicaChannelValueRateLimitingFilter(long samplingIntervalInMillis) Constructs a new instance which returns an output list containing the first input value and then subsequent values taken from the input list after the specified minimum sampling interval.- Parameters:
samplingIntervalInMillis
- - the minimum time duration between samples.
-
-
Method Details
-
apply
Description copied from interface:WicaChannelValueFilter
Transforms the values in the input apply to the output apply using some configurable filtering algorithm.- Specified by:
apply
in interfaceWicaChannelValueFilter
- Parameters:
inputList
- the list of values to process.- Returns:
- the list of values that were produced from the processing step.
-
toString
-