gearman_client_options.rst 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. ===============
  2. Setting Options
  3. ===============
  4. --------
  5. SYNOPSIS
  6. --------
  7. #include <libgearman/gearman.h>
  8. .. c:type:: gearman_client_options_t
  9. .. c:function:: gearman_client_options_t gearman_client_options(const gearman_client_st *client)
  10. .. c:function:: void gearman_client_set_options(gearman_client_st *client, gearman_client_options_t options)
  11. .. c:function:: void gearman_client_add_options(gearman_client_st *client, gearman_client_options_t options)
  12. .. c:function:: void gearman_client_remove_options(gearman_client_st *client, gearman_client_options_t options)
  13. .. c:function:: bool gearman_client_has_option(gearman_client_st *client, gearman_client_options_t option)
  14. Link with -lgearman
  15. -----------
  16. DESCRIPTION
  17. -----------
  18. :c:func:`gearman_client_options` returns the :c:type:`gearman_client_options_t` for :c:type:`gearman_client_st`. You enable options via :c:func:`gearman_client_add_options` and disable options via :c:func:`gearman_client_remove_options`.
  19. :c:func:`gearman_client_set_options` has been DEPRECATED.
  20. The currently supported options are:
  21. .. c:type:: GEARMAN_CLIENT_NON_BLOCKING
  22. Run the cient in a non-blocking mode.
  23. .. c:type:: GEARMAN_CLIENT_FREE_TASKS
  24. Automatically free task objects once they are complete.
  25. .. c:type:: GEARMAN_CLIENT_UNBUFFERED_RESULT
  26. Allow the client to read data in chunks rather than have the library buffer
  27. the entire data result and pass that back.
  28. .. c:type:: GEARMAN_CLIENT_GENERATE_UNIQUE
  29. Generate a unique id for each task created by generating a UUID.
  30. ------------
  31. RETURN VALUE
  32. ------------
  33. Various
  34. ----
  35. HOME
  36. ----
  37. To find out more information please check:
  38. `https://gearman.org/gearmand/ <https://gearman.org/gearmand/>`_
  39. .. seealso::
  40. :manpage:`gearmand(8)` :manpage:`libgearman(3)`