Client bindings¶
-
class
isc.client.
Client
(host='amqp://guest:guest@127.0.0.1:5672/', exchange='isc', codec=None, connect_timeout=2, reconnect_timeout=3, invoke_timeout=20)[source]¶ Represents a single low-level connection to the ISC messaging broker. Thread-safe.
-
class
isc.client.
ConsumerThread
(hostname, exchange_name, connect_timeout, reconnect_timeout, codec)[source]¶ Internal class. Represents connection & message consuming thread.
-
class
isc.client.
FutureResult
(cannonical_name, **extra)[source]¶ Encapsulates future result. Provides interface to block until future data is ready. Thread-safe.
-
class
isc.client.
MethodProxy
(client, service_name, method_name)[source]¶ Convenience wrapper for method.
It allows you to perform attribute chaining (e. g.
client.example.add(2, 3)
)-
call_async
(*args, **kwargs)[source]¶ Finalizes the chain & performs actual RPC invocation. Does not block.
Returns
FutureResult
.This is same as calling
invoke_async()
-
-
class
isc.client.
PublisherThread
(consumer)[source]¶ Internal class. Represents message publishing thread.
-
class
isc.client.
QueuedInvocation
(codec, service, method, args, kwargs)[source]¶ Internal class. Represents pending outgoing method call.
-
class
isc.client.
QueuedNotification
(codec, event, data)[source]¶ Internal class. Represents pending outgoing notification.