Kudu C++ client API
|
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.
|
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. |
|
inlinevirtual |
Notify/report on the status.
[in] | s | The status to report. |
Implements kudu::client::KuduStatusCallback.