All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Typedefs
as_listener.h File Reference
#include <aerospike/as_error.h>
#include <aerospike/as_event.h>
#include <aerospike/as_record.h>
+ Include dependency graph for as_listener.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* as_async_record_listener )(as_error *err, as_record *record, void *udata, as_event_loop *event_loop)
 
typedef void(* as_async_value_listener )(as_error *err, as_val *val, void *udata, as_event_loop *event_loop)
 
typedef void(* as_async_write_listener )(as_error *err, void *udata, as_event_loop *event_loop)
 

Typedef Documentation

typedef void(* as_async_record_listener)(as_error *err, as_record *record, void *udata, as_event_loop *event_loop)

User callback when an asynchronous read completes with a record result.

Parameters
errThis error structure is only populated when the command fails. Null on success.
recordThe return value from the asynchronous command. This value will need to be cast to the structure that corresponds to the asynchronous command. Null on error.
udataUser data that is forwarded from asynchronous command function.
event_loopEvent loop that this command was executed on. Use this event loop when running nested asynchronous commands when single threaded behavior is desired for the group of commands.

Definition at line 49 of file as_listener.h.

typedef void(* as_async_value_listener)(as_error *err, as_val *val, void *udata, as_event_loop *event_loop)

User callback when asynchronous read completes with an as_val result.

Parameters
errThis error structure is only populated when the command fails. Null on success.
valThe return value from the asynchronous command. This value will need to be cast to the structure that corresponds to the asynchronous command. Null on error.
udataUser data that is forwarded from asynchronous command function.
event_loopEvent loop that this command was executed on. Use this event loop when running nested asynchronous commands when single threaded behavior is desired for the group of commands.

Definition at line 62 of file as_listener.h.

typedef void(* as_async_write_listener)(as_error *err, void *udata, as_event_loop *event_loop)

User callback when an asynchronous write completes.

Parameters
errThis error structure is only populated when the command fails. Null on success.
udataUser data that is forwarded from asynchronous command function.
event_loopEvent loop that this command was executed on. Use this event loop when running nested asynchronous commands when single threaded behavior is desired for the group of commands.

Definition at line 36 of file as_listener.h.