File Information
Library: IoT/Devices
Package: Devices
Header: IoT/Devices/EventModerationPolicy.h
Description
This event moderation policy will fire an event at most every n milliseconds. An external Poco::Util::Timer instance must be supplied.
Inheritance
Direct Base Classes: EventModerationPolicy < T >
All Base Classes: EventModerationPolicy < T >
Member Summary
Member Functions: getMaximumRate, onTimer, operator =, setMaximumRate, valueChanged
Types
Event
typedef Poco::BasicEvent < const T > Event;
Constructors
MaximumRateModerationPolicy
MaximumRateModerationPolicy(
const MaximumRateModerationPolicy & other
);
MaximumRateModerationPolicy
MaximumRateModerationPolicy(
Event & event,
const T & initialValue,
long maximumRateMS,
Poco::Util::Timer & timer
);
Member Functions
getMaximumRate
long getMaximumRate() const;
operator =
MaximumRateModerationPolicy & operator = (
const MaximumRateModerationPolicy & other
);
setMaximumRate
void setMaximumRate(
long milliseconds
);
valueChanged
void valueChanged(
const T & newValue
);
onTimer
void onTimer(
Poco::Util::TimerTask & param76
);