2014-07-25 06:03:41 +00:00
|
|
|
package connector
|
|
|
|
|
|
2016-12-04 08:08:06 +00:00
|
|
|
// Checkpoint interface for functions that checkpoints need to
|
|
|
|
|
// implement in order to track consumer progress.
|
|
|
|
|
type Checkpoint interface {
|
|
|
|
|
CheckpointExists(shardID string) bool
|
|
|
|
|
SequenceNumber() string
|
|
|
|
|
SetCheckpoint(shardID string, sequenceNumber string)
|
2014-07-25 06:03:41 +00:00
|
|
|
}
|