summaryrefslogtreecommitdiff
path: root/kafka/producer/base.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@rd.io>2015-06-08 17:25:45 -0700
committerDana Powers <dana.powers@rd.io>2015-06-08 18:59:23 -0700
commit0dc6663d24f6b9386ac2119a4a11836391e5da65 (patch)
tree47a2fa30bfa32a4714c74afa2989944bcb86e56a /kafka/producer/base.py
parentc0fb0de7c4ced45dae4e09cdc660ebc741e11af3 (diff)
downloadkafka-python-0dc6663d24f6b9386ac2119a4a11836391e5da65.tar.gz
Add a few extra docstring comments about thread-safe clients/connections
Diffstat (limited to 'kafka/producer/base.py')
-rw-r--r--kafka/producer/base.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kafka/producer/base.py b/kafka/producer/base.py
index 18af342..e0c086b 100644
--- a/kafka/producer/base.py
+++ b/kafka/producer/base.py
@@ -206,6 +206,8 @@ class Producer(object):
Arguments:
client (KafkaClient): instance to use for broker communications.
+ If async=True, the background thread will use client.copy(),
+ which is expected to return a thread-safe object.
codec (kafka.protocol.ALL_CODECS): compression codec to use.
req_acks (int, optional): A value indicating the acknowledgements that
the server must receive before responding to the request,