The status callback that invokes a function by pointer with a single argument. More...
#include <callbacks.h>
Public Types | |
typedef void(* | FunctionType )(T arg, const Status &s) |
A handy typedef for the function with appropriate signature. | |
Public Member Functions | |
KuduStatusFunctionCallback (FunctionType function, T arg) | |
virtual void | Run (const Status &s) OVERRIDE |
The status callback that invokes a function by pointer with a single argument.
kudu::client::KuduStatusFunctionCallback< T >::KuduStatusFunctionCallback | ( | FunctionType | function, | |
T | arg | |||
) | [inline] |
Build an instance of KuduStatusFunctionCallback.
[in] | function | A pointer to the status report function to invoke with the arg argument. |
[in] | arg | An argument for the function invocation. |
virtual void kudu::client::KuduStatusFunctionCallback< T >::Run | ( | const Status & | s | ) | [inline, virtual] |
Notify/report on the status.
[in] | s | The status to report. |
Implements kudu::client::KuduStatusCallback.