summaryrefslogtreecommitdiff
path: root/docs/api/client.rst
blob: 6a6f27e5828c9f91e3044729e6f97e7fd378879d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.. _client_module:

:mod:`kazoo.client`
----------------------------

.. automodule:: kazoo.client

Public API
++++++++++

    .. autoclass:: KazooClient()
        :members:
        :member-order: bysource

        .. automethod:: __init__

        .. attribute:: handler

        The :class:`~kazoo.interfaces.IHandler` strategy used by this client.
        Gives access to appropriate synchronization objects.

        .. method:: retry(func, *args, **kwargs)

        Runs the given function with the provided arguments, retrying if it
        fails because the ZooKeeper connection is lost,
        see :ref:`retrying_commands`.

        .. attribute:: state

        A :class:`~kazoo.protocol.states.KazooState` attribute indicating the
        current higher-level connection state.