R/checkpointing.R

Defines functions checkpoint

Documented in checkpoint

#' Checkpoint at current or given sequence number
#' @param sequenceNumber optional
#' @export
checkpoint <- function(sequenceNumber) {

    params <- list(action = 'checkpoint')
    if (!missing(sequenceNumber)) {
        params <- c(params, list(checkpoint = sequenceNumber))
    }

    ## send checkpointing request
    write_line_to_stdout(toJSON(params, auto_unbox = TRUE))

    ## wait until checkpointing is finished
    read_line_from_stdin()

}

Try the AWR.Kinesis package in your browser

Any scripts or data that you put into this service are public.

AWR.Kinesis documentation built on Aug. 19, 2023, 1:07 a.m.