Function rusteron_archive::bindings::aeron_archive_replicate
source ยท pub unsafe extern "C" fn aeron_archive_replicate(
replication_id_p: *mut i64,
aeron_archive: *mut aeron_archive_t,
src_recording_id: i64,
src_control_channel: *const c_char,
src_control_stream_id: i32,
params: *mut aeron_archive_replication_params_t,
) -> c_int
Expand description
Replicate a recording from a source Archive to a destination. This can be considered a backup for a primary Archive. The source recording will be replayed via the provided replay channel and use the original stream id. The behavior of the replication will be governed by the values specified in the aeron_archive_replication_params_t.
For a source recording that is still active, the replay can merge with the live stream and then follow it directly and no longer require the replay from the source. This would require a multicast live destination.
Errors will be reported asynchronously and can be checked for with aeron_archive_check_for_error_response and aeron_archive_poll_for_error_response.
@param replication_id_p out param set to the replication id that can be used to stop the replication @param aeron_archive the archive client @param src_recording_id the recording id that must exist at the source Archive @param src_control_channel remote control channel for the source archive on which to instruct the replay @param src_control_stream_id remote control stream id for the source archive on which to instruct the replay @param params optional parameters to configure the behavior of the replication @return 0 for success, -1 for failure