1GEARMAN_CLIENT_SET_EXCEPTION_FN(3) Gearmand GEARMAN_CLIENT_SET_EXCEPTION_FN(3)
2
3
4

NAME

6       gearman_client_set_exception_fn  - Gearmand Documentation, http://gear
7       man.info/
8

SYNOPSIS

10       #include <libgearman/gearman.h>
11
12       gearman_actions_t
13
14       gearman_workload_fn
15
16       gearman_created_fn
17
18       gearman_data_fn
19
20       gearman_warning_fn
21
22       gearman_universal_status_fn
23
24       gearman_exception_fn
25
26       gearman_fail_fn
27
28       gearman_complete_fn
29
30       void          gearman_client_set_workload_fn(gearman_client_st *client,
31       gearman_workload_fn *function)
32
33       void           gearman_client_set_created_fn(gearman_client_st *client,
34       gearman_created_fn *function)
35
36       void              gearman_client_set_data_fn(gearman_client_st *client,
37       gearman_data_fn *function)
38
39       void           gearman_client_set_warning_fn(gearman_client_st *client,
40       gearman_warning_fn *function)
41
42       void            gearman_client_set_status_fn(gearman_client_st *client,
43       gearman_universal_status_fn *function)
44
45       void          gearman_client_set_complete_fn(gearman_client_st *client,
46       gearman_complete_fn *function)
47
48       void         gearman_client_set_exception_fn(gearman_client_st *client,
49       gearman_exception_fn *function)
50
51       void              gearman_client_set_fail_fn(gearman_client_st *client,
52       gearman_fail_fn *function)
53
54       void gearman_client_clear_fn(gearman_client_st *client)
55
56       const char *gearman_client_do_job_handle(gearman_client_st *client)
57
58       Link to -lgearman
59

DESCRIPTION

61       Callbacks for client execution task states.
62
63       gearman_client_set_data_fn() sets the callback function  that  will  be
64       called  if  server  is  to make a request to the client to provide more
65       data.
66
67       gearman_client_do_job_handle() gest the  job  handle  for  the  running
68       task.  This  should  be  used between repeated gearman_client_do() (and
69       related) calls to get information.
70
71       gearman_client_clear_fn()  can  be  called  to  remove   all   existing
72       gearman_actions_t that have been set.
73
74       gearman_client_set_created_fn(),          gearman_client_set_data_fn(),
75       gearman_client_set_warning_fn(),        gearman_client_set_status_fn(),
76       gearman_client_set_complete_fn(),    gearman_client_set_exception_fn(),
77       and gearman_client_set_fail_fn(), set callback functions for  the  dif‐
78       ferent  states  of  execution  for a client request. Each request, ie a
79       creation of gearman_task_st, keeps a copy of callbacks when it is  cre‐
80       ated.
81
82       gearman_client_set_exception_fn() will only be called if exceptions are
83       enabled  on  the  server.  You   can   do   this   by   calling   gear‐
84       man_client_set_server_option().
85
86       An example of this:
87
88          const char *EXCEPTIONS="exceptions";
89          gearman_client_set_server_option(client, EXCEPTIONS, strlen(EXCEPTIONS));
90

RETURN VALUE

92       None
93
94       SEE ALSO:
95          gearmand(8)    libgearman(3)    gearman_client_error(3)   or   gear‐
96          man_worker_error(3)
97

AUTHOR

99       Data Differential http://www.datadifferential.com/
100
102       2011-2014, Data Differential, http://www.datadifferential.com/
103
104
105
106
1071.1.19.1                         Feb 18, 2020GEARMAN_CLIENT_SET_EXCEPTION_FN(3)
Impressum