![]() |
Apache Ignite C++ Client
|
#include <cancel_handle.h>
Public Member Functions | |
| virtual | ~cancel_handle ()=default |
| virtual IGNITE_API void | cancel_async (ignite_callback< void > callback)=0 |
| virtual IGNITE_API void | cancel () |
| virtual IGNITE_API bool | is_cancelled () const =0 |
| virtual IGNITE_API std::shared_ptr< cancellation_token > | get_token ()=0 |
Static Public Member Functions | |
| static IGNITE_API std::shared_ptr< cancel_handle > | create () |
A handle which may be used to request the cancellation of execution.
|
virtualdefault |
Destructor.
|
inlinevirtual |
Abruptly terminates an execution of an associated process.
Control flow will return after the process has been terminated and the resources associated with that process have been freed.
|
pure virtual |
Abruptly terminates an execution of an associated process.
| callback | A callback that will be called after the process has been terminated and the resources associated with that process have been freed. |
Implemented in ignite::cancel_handle_impl.
|
staticnodiscard |
A factory method to create a handle.
|
pure virtual |
Issue a token associated with this handle.
Token is reusable, meaning the same token may be used to link several executions into a single cancellable.
Implemented in ignite::cancel_handle_impl.
|
pure virtual |
Flag indicating whether cancellation was requested or not.
This method will return true even if cancellation has not been completed yet.
true if the cancellation was requested. Implemented in ignite::cancel_handle_impl.