failover_output_device
messageflux.iodevices.failover_output_device_wrapper.failover_output_device
FailoverOutputDevice
Bases: OutputDevice['FailoverOutputDeviceManager']
this device tries to send to primary output device - if the primary fails, it sends to secondary
this device tries to send to primary output device - if the primary fails, it sends to secondary
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inner_device |
OutputDevice
|
the device to wrap |
required |
failover_device |
OutputDevice
|
the failover device to send to in case of primary fail |
required |
device_name |
Optional[str]
|
the name for the device (or None to take from inner_device |
None
|
FailoverOutputDeviceManager
Bases: OutputDeviceManager[OutputDevice]
Output Device Manager that uses a failover if the send fails
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
inner_device_manager |
OutputDeviceManager
|
the device to wrap |
required |
failover_device_manager |
OutputDeviceManager
|
the failover device_manager to send to in case of primary fail |
required |