Checkpoints
This section explains what is a checkpoint and how to use it.
A checkpoint is a string value associated to a connector. Multiple checkpoints are possible for a connector.
Two methods are used to manipulate the checkpoint:
Get
and
Set
methods.
Get
operates on
Synced
state => a
Get
performed immediately after a
Set
may not return the same value.
The
setCheckpoint
method can be used to sync the previous
operations by setting the
sync
parameter to
true
. It can also be used to know whether the
operation status is
Searchable
. See
Operations and states.
Typical use cases of checkpoint operations:
-
Store the last synchronization date of a folder.
-
Store the last eventId in a journal of events.
-
Safely sync to disk previous operations (
sync
set totrue
). -
Allow tracking of operations state to know whether documents are searchable; see Operations and states.