Poco

template < class TArgs >

class Expire

File Information

Library: Foundation
Package: Events
Header: Poco/Expire.h

Description

Decorator for AbstractDelegate adding automatic expiration of registrations to AbstractDelegate's.

Inheritance

Direct Base Classes: AbstractDelegate < TArgs >

All Base Classes: AbstractDelegate < TArgs >

Member Summary

Member Functions: clone, disable, equals, expired, notify, operator =, unwrap

Constructors

Expire inline

Expire(
    const Expire & expire
);

Expire inline

Expire(
    const AbstractDelegate < TArgs > & p,
    Timestamp::TimeDiff expireMillisecs
);

Destructor

~Expire inline

~Expire();

Member Functions

clone inline

AbstractDelegate < TArgs > * clone() const;

disable inline

void disable();

equals inline

bool equals(
    const AbstractDelegate < TArgs > & other
) const;

notify inline

bool notify(
    const void * sender,
    TArgs & arguments
);

operator = inline

Expire & operator = (
    const Expire & expire
);

unwrap inline

const AbstractDelegate < TArgs > * unwrap() const;

expired protected inline

bool expired() const;

Variables

_creationTime protected

Timestamp _creationTime;

_expire protected

Timestamp::TimeDiff _expire;

_pDelegate protected

AbstractDelegate < TArgs > * _pDelegate;

Securely control IoT edge devices from anywhere   Connect a Device