atomiq.components.basics.datasink module¶
- class atomiq.components.basics.datasink.DataSink(*args, **kwargs)[source]¶
Bases:
Component
Represent an abstract data sink and define methods it must provide.
- class atomiq.components.basics.datasink.RPCPublisherSink(rpc_publisher, topic_prefix='', default_topic='newData', *args, **kwargs)[source]¶
Bases:
DataSink
Represent a data sink that calls an RPC to publish data. What happens to the data strongly depends on the other end of the RPC, i.e. the service that handles the RPC. Examples could be writing to a pubsub service or dumping to a database.
- Parameters:
rpc_publisher (Component) -- (Component) an RPC device that can handle the function publish()
topic_prefix (TStr)
default_topic (TStr)
- kernel_invariants = {'default_topic', 'rpc_publisher', 'topic_prefix'}¶