activemq-cpp-3.6.0
|
A Runnable version of the Future type. More...
#include <src/main/decaf/util/concurrent/RunnableFuture.h>
Public Member Functions | |
virtual | ~RunnableFuture () |
Public Member Functions inherited from decaf::util::concurrent::Future< T > | |
virtual | ~Future () |
virtual T | get ()=0 |
Waits if necessary for the computation to complete, and then retrieves its result. | |
virtual T | get (long long timeout, const TimeUnit &unit)=0 |
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available. | |
Public Member Functions inherited from decaf::util::concurrent::FutureType | |
virtual | ~FutureType () |
virtual bool | cancel (bool mayInterruptIfRunning)=0 |
Attempts to cancel execution of this task. | |
virtual bool | isCancelled () const =0 |
Returns true if this task was canceled before it completed normally. | |
virtual bool | isDone () const =0 |
Returns true if this task completed. | |
Public Member Functions inherited from decaf::lang::Runnable | |
virtual | ~Runnable () |
virtual void | run ()=0 |
Run method - called by the Thread class in the context of the thread. |
A Runnable version of the Future type.
When the run method has completed successfully the Future will be considered complete and its get method will return the produced result.
|
inlinevirtual |