activemq-cpp-3.6.0
decaf::util::concurrent::RunnableFuture< T > Class Template Reference

A Runnable version of the Future type. More...

#include <src/main/decaf/util/concurrent/RunnableFuture.h>

Inheritance diagram for decaf::util::concurrent::RunnableFuture< T >:

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.

Detailed Description

template<typename T>
class decaf::util::concurrent::RunnableFuture< T >

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.

Since
1.0

Constructor & Destructor Documentation

template<typename T >
virtual decaf::util::concurrent::RunnableFuture< T >::~RunnableFuture ( )
inlinevirtual

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