Poco

template < class TArgs >

class PriorityExpire

File Information

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

Description

Decorator for AbstractPriorityDelegate adding automatic expiring of registrations to AbstractPriorityDelegate.

Inheritance

Direct Base Classes: AbstractPriorityDelegate < TArgs >

All Base Classes: AbstractPriorityDelegate < TArgs >

Member Summary

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

Constructors

PriorityExpire inline

PriorityExpire(
    const PriorityExpire & expire
);

PriorityExpire inline

PriorityExpire(
    const AbstractPriorityDelegate < TArgs > & p,
    Timestamp::TimeDiff expireMilliSec
);

Destructor

~PriorityExpire inline

~PriorityExpire();

Member Functions

clone inline

AbstractPriorityDelegate < 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

PriorityExpire & operator = (
    const PriorityExpire & expire
);

unwrap inline

const AbstractPriorityDelegate < TArgs > * unwrap() const;

expired protected inline

bool expired() const;

Variables

_creationTime protected

Timestamp _creationTime;

_expire protected

Timestamp::TimeDiff _expire;

_pDelegate protected

AbstractPriorityDelegate < TArgs > * _pDelegate;