gearman_client_set_options(3)

gearman_client_set_options3

Gearmand documentation, https://gearman.org/gearmand/

Usage

#include <libgearman/gearman.h>

type gearman_client_options_t
gearman_client_options_t gearman_client_options(const gearman_client_st *client)
void gearman_client_set_options(gearman_client_st *client, gearman_client_options_t options)
void gearman_client_add_options(gearman_client_st *client, gearman_client_options_t options)
void gearman_client_remove_options(gearman_client_st *client, gearman_client_options_t options)
bool gearman_client_has_option(gearman_client_st *client, gearman_client_options_t option)

Link with -lgearman

Overview

gearman_client_options() returns the gearman_client_options_t for gearman_client_st. You enable options via gearman_client_add_options() and disable options via gearman_client_remove_options().

gearman_client_set_options() has been DEPRECATED.

The currently supported options are:

type GEARMAN_CLIENT_NON_BLOCKING

Run the cient in a non-blocking mode.

type GEARMAN_CLIENT_STOP_WAIT_ON_SIGNAL

Return GEARMAN_IO_WAIT from gearman_wait() when a signal interrupts the wait.

type GEARMAN_CLIENT_FREE_TASKS

Automatically free task objects once they are complete.

type GEARMAN_CLIENT_UNBUFFERED_RESULT

Allow the client to read data in chunks rather than have the library buffer the entire data result and pass that back.

type GEARMAN_CLIENT_GENERATE_UNIQUE

Generate a unique id for each task created by generating a UUID.

type GEARMAN_CLIENT_SERVER_SELECTION_BY_UNIQUE

Choose the server a job is submitted to by hashing its unique, instead of using the first idle server. Equivalent to gearman_client_set_server_selection_by_unique(), which describes the behavior in detail.

Return value

Various

Home

To find out more information please check: https://gearman.org/gearmand/

SEE ALSO:

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8–9
  4. 10
  5. 11
  6. 12
  7. 13
  8. Arch

Author

Data Differential http://www.datadifferential.com/

From gearmand 2.2.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.