IoT::Devices

template < typename T >

class MaximumRateModerationPolicy

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 inline

MaximumRateModerationPolicy(
    const MaximumRateModerationPolicy & other
);

MaximumRateModerationPolicy inline

MaximumRateModerationPolicy(
    Event & event,
    const T & initialValue,
    long maximumRateMS,
    Poco::Util::Timer & timer
);

Member Functions

getMaximumRate inline

long getMaximumRate() const;

operator = inline

MaximumRateModerationPolicy & operator = (
    const MaximumRateModerationPolicy & other
);

setMaximumRate inline

void setMaximumRate(
    long milliseconds
);

valueChanged inline

void valueChanged(
    const T & newValue
);

onTimer protected inline

void onTimer(
    Poco::Util::TimerTask & param76
);

Securely control IoT edge devices from anywhere   Connect a Device