Subscriber is a protobuf-aware subscriber and uses ZmqSubscriber for the lower level protocol.
More...
Subscriber is a protobuf-aware subscriber and uses ZmqSubscriber for the lower level protocol.
def rad.services.pubsub.Subscriber.__init__ |
( |
|
self, |
|
|
|
handler, |
|
|
|
topic_types |
|
) |
| |
def rad.services.pubsub.Subscriber.__init__ |
( |
|
self, |
|
|
|
handler, |
|
|
|
topic_types |
|
) |
| |
def rad.services.pubsub.Subscriber.connect |
( |
|
self, |
|
|
|
endpoint |
|
) |
| |
def rad.services.pubsub.Subscriber.connect |
( |
|
self, |
|
|
|
endpoint |
|
) |
| |
def rad.services.pubsub.Subscriber.disconnect |
( |
|
self, |
|
|
|
endpoint |
|
) |
| |
Disconnect from endpoint.
def rad.services.pubsub.Subscriber.disconnect |
( |
|
self, |
|
|
|
endpoint |
|
) |
| |
Disconnect from endpoint.
def rad.services.pubsub.Subscriber.is_closed |
( |
|
self, |
|
|
|
bool |
|
) |
| |
Returns true if subscriber is not running, false otherwise.
def rad.services.pubsub.Subscriber.is_closed |
( |
|
self, |
|
|
|
bool |
|
) |
| |
Returns true if subscriber is not running, false otherwise.
def rad.services.pubsub.Subscriber.start |
( |
|
self | ) |
|
Start reading from socket.
- Todo:
- : Return future instead?
- Returns
- Coroutine. The ZMQ socket reader coro that needs to be awaited on.
def rad.services.pubsub.Subscriber.start |
( |
|
self | ) |
|
Start reading from socket.
- Todo:
- : Return future instead?
- Returns
- Coroutine. The ZMQ socket reader coro that needs to be awaited on.
def rad.services.pubsub.Subscriber.stop |
( |
|
self | ) |
|
Stop reading from socket.
- Todo:
- : Return future instead?
- Returns
- Coroutine. The ZMQ socket reader coro that needs to be awaited on.
def rad.services.pubsub.Subscriber.stop |
( |
|
self | ) |
|
Stop reading from socket.
- Todo:
- : Return future instead?
- Returns
- Coroutine. The ZMQ socket reader coro that needs to be awaited on.
def rad.services.pubsub.Subscriber.subscribe |
( |
|
self, |
|
|
|
topic_name |
|
) |
| |
Subscribe on the topic topic_name
.
- Note
- ZMQ topic filtering is done simply on the start of the string, subscribing to 'foo' will match the published topic 'foobar'.
- Params
- topic_name Topic name (str or bytes).
def rad.services.pubsub.Subscriber.subscribe |
( |
|
self, |
|
|
|
topic_name |
|
) |
| |
Subscribe on the topic topic_name
.
- Note
- ZMQ topic filtering is done simply on the start of the string, subscribing to 'foo' will match the published topic 'foobar'.
- Params
- topic_name Topic name (str or bytes).
def rad.services.pubsub.Subscriber.unsubscribe |
( |
|
self, |
|
|
|
topic_name |
|
) |
| |
Unsubscribe to topic identified by topic_name
.
def rad.services.pubsub.Subscriber.unsubscribe |
( |
|
self, |
|
|
|
topic_name |
|
) |
| |
Unsubscribe to topic identified by topic_name
.
The documentation for this class was generated from the following files:
- INTROOT/lib/python3.7/site-packages/rad/services/pubsub.py
- rad/py/rad/src/rad/services/pubsub.py