collection_output_device
messageflux.iodevices.collection_device_wrapper.collection_output_device
CollectionOutputDevice
Bases: OutputDevice['CollectionOutputDeviceManager']
this class writes to a collection of output devices.
it iterates over the collection, and sends to the first successful device
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
device_name |
str
|
the name of this device |
required |
output_devices |
Collection[OutputDevice]
|
the outgoing devices to send to |
required |
CollectionOutputDeviceManager
Bases: OutputDeviceManager[CollectionOutputDevice]
This class is used to create Collection OutputDevices
This class is used to create Collection OutputDevices
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inner_managers |
List[OutputDeviceManager]
|
the actual OutputDeviceManager instances to generate devices from |
required |
collection_maker |
Callable[[List[OutputDevice]], Collection[OutputDevice]]
|
the callable to make the iterable collection from list of devices |
required |