2014-07-25 06:03:41 +00:00
|
|
|
package connector
|
|
|
|
|
|
2014-12-10 23:38:19 +00:00
|
|
|
// Checkpoint is used by Pipeline.ProcessShard when they want to checkpoint their progress.
|
2014-07-25 06:03:41 +00:00
|
|
|
// The Kinesis Connector Library will pass an object implementing this interface to ProcessShard,
|
|
|
|
|
// so they can checkpoint their progress.
|
|
|
|
|
type Checkpoint interface {
|
2014-11-15 21:44:46 +00:00
|
|
|
CheckpointExists(shardID string) bool
|
|
|
|
|
SequenceNumber() string
|
|
|
|
|
SetCheckpoint(shardID string, sequenceNumber string)
|
2014-07-25 06:03:41 +00:00
|
|
|
}
|