Poco

template < typename TArgs >

class AccessExpirationDecorator

Library: Foundation
Package: Cache
Header: Poco/AccessExpirationDecorator.h

Description

AccessExpirationDecorator adds an expiration method to values so that they can be used with the UniqueAccessExpireCache

Member Summary

Member Functions: getTimeout, value

Constructors

AccessExpirationDecorator inline

AccessExpirationDecorator();

AccessExpirationDecorator inline

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

Creates an element that will expire in diff milliseconds

AccessExpirationDecorator inline

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

Creates an element that will expire after the given timeSpan

Destructor

~AccessExpirationDecorator inline

~AccessExpirationDecorator();

Member Functions

getTimeout inline

const Poco::Timespan & getTimeout() const;

value inline

const TArgs & value() const;

value inline

TArgs & value();

Securely control IoT edge devices from anywhere   Connect a Device