activemq-cpp-3.6.0
|
A mix-in style interface for marking objects that should be acted upon after a given delay. More...
#include <src/main/decaf/util/concurrent/Delayed.h>
Public Member Functions | |
virtual | ~Delayed () |
virtual long long | getDelay (const TimeUnit &unit)=0 |
Returns the remaining delay associated with this object, in the given time unit. | |
![]() | |
virtual | ~Comparable () |
virtual int | compareTo (const Delayed &value) const =0 |
Compares this object with the specified object for order. | |
virtual bool | equals (const Delayed &value) const =0 |
virtual bool | operator== (const Delayed &value) const =0 |
Compares equality between this object and the one passed. | |
virtual bool | operator< (const Delayed &value) const =0 |
Compares this object to another and returns true if this object is considered to be less than the one passed. |
A mix-in style interface for marking objects that should be acted upon after a given delay.
An implementation of this interface must define a Comparable methods that provides an ordering consistent with its getDelay method.
|
inlinevirtual |
Returns the remaining delay associated with this object, in the given time unit.
unit | The time unit |