Hazelcast C++ Client
Public Member Functions | List of all members
hazelcast::client::internal::eviction::Expirable Class Referenceabstract

Expiring Data model interface. More...

#include <Expirable.h>

+ Inheritance diagram for hazelcast::client::internal::eviction::Expirable:

Public Member Functions

virtual int64_t getExpirationTime ()=0
 Gets the expiration time in milliseconds. More...
 
virtual void setExpirationTime (int64_t expirationTime)=0
 Sets the expiration time in milliseconds. More...
 
virtual bool isExpiredAt (int64_t now)=0
 Checks whether the expiration time is passed with respect to the provided time. More...
 

Detailed Description

Expiring Data model interface.

This interface provides a time variable to be compared against other time values to decide on "future" or "past".

Member Function Documentation

virtual int64_t hazelcast::client::internal::eviction::Expirable::getExpirationTime ( )
pure virtual

Gets the expiration time in milliseconds.

Returns
expiration time.
See also
System::currentTimeMillis()
virtual bool hazelcast::client::internal::eviction::Expirable::isExpiredAt ( int64_t  now)
pure virtual

Checks whether the expiration time is passed with respect to the provided time.

Returns true if and only if

.

Parameters
nowtime in milliseconds.
Returns
true if expired.
virtual void hazelcast::client::internal::eviction::Expirable::setExpirationTime ( int64_t  expirationTime)
pure virtual

Sets the expiration time in milliseconds.

Parameters
expirationTime
See also
System::currentTimeMillis()

The documentation for this class was generated from the following file: