Poco

template < typename TArgs >

class ExpirationDecorator

File Information

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

Description

ExpirationDecorator adds an expiration method to values so that they can be used with the UniqueExpireCache.

Member Summary

Member Functions: getExpiration, value

Constructors

ExpirationDecorator inline

ExpirationDecorator();

ExpirationDecorator inline

ExpirationDecorator(
    const TArgs & p,
    const Poco::Timespan::TimeDiff & diffInMs
);

Creates an element that will expire in diff milliseconds

ExpirationDecorator inline

ExpirationDecorator(
    const TArgs & p,
    const Poco::Timespan & timeSpan
);

Creates an element that will expire after the given timeSpan

ExpirationDecorator inline

ExpirationDecorator(
    const TArgs & p,
    const Poco::Timestamp & timeStamp
);

Creates an element that will expire at the given time point

Destructor

~ExpirationDecorator inline

~ExpirationDecorator();

Member Functions

getExpiration inline

const Poco::Timestamp & getExpiration() const;

value inline

const TArgs & value() const;

value inline

TArgs & value();