Debian Codegraph @

docs/api/interfaces.rst

raw
1 .. _interfaces_module:
2
3 :mod:`kazoo.interfaces`
4 ----------------------------
5
6 .. automodule:: kazoo.interfaces
7
8 Public API
9 ++++++++++
10
11 :class:`IHandler` implementations should be created by the developer to be
12 passed into :class:`~kazoo.client.KazooClient` during instantiation for the
13 preferred callback handling.
14
15 If the developer needs to use objects implementing the :class:`IAsyncResult`
16 interface, the :meth:`IHandler.async_result` method must be used instead of
17 instantiating one directly.
18
19 .. autoclass:: IHandler
20 :members:
21
22 Private API
23 +++++++++++
24
25 The :class:`IAsyncResult` documents the proper implementation for providing
26 a value that results from a Zookeeper completion callback. Since the
27 :class:`~kazoo.client.KazooClient` returns an :class:`IAsyncResult` object
28 instead of taking a completion callback for async functions, developers
29 wishing to have their own callback called should use the
30 :meth:`IAsyncResult.rawlink` method.
31
32 .. autoclass:: IAsyncResult
33 :members: