00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef GRIDFUTURE_HPP_
00011 #define GRIDFUTURE_HPP_
00012
00013 #include <gridgain/gridconf.hpp>
00014 #include <boost/date_time.hpp>
00015
00018 class GRIDGAIN_API GridClientBoolFuture {
00019 public:
00021 virtual ~GridClientBoolFuture() {}
00022
00029 virtual bool get() const =0;
00030
00039 virtual bool get(const boost::posix_time::time_duration& timeout) const = 0;
00040 };
00041
00045 template<class T>
00046 class GridClientFuture {
00047 public:
00049 virtual ~GridClientFuture(){}
00050
00056 virtual bool success() const = 0;
00057
00063 virtual T result() const = 0;
00064
00070 virtual T get() = 0;
00071
00080 virtual T get(const boost::posix_time::time_duration& timeout) = 0;
00081 };
00082
00083 #endif