MCPcopy Create free account
hub / github.com/AdRoll/baker / Initialize

Method Initialize

input/kcl.go:289–296  ·  view source on GitHub ↗

Initialize is invoked by the Amazon Kinesis Client Library before data records are delivered to the RecordProcessor instance (via processRecords).

(input *interfaces.InitializationInput)

Source from the content-addressed store, hash-verified

287// Initialize is invoked by the Amazon Kinesis Client Library before data
288// records are delivered to the RecordProcessor instance (via processRecords).
289func (p *recordProcessor) Initialize(input *interfaces.InitializationInput) {
290 p.shardID = input.ShardId
291 p.tags = []string{fmt.Sprintf("shard:%s", p.shardID)}
292 log.WithFields(log.Fields{
293 "shard": input.ShardId,
294 "checkpoint": aws.StringValue(input.ExtendedSequenceNumber.SequenceNumber)}).
295 Info("Initializing a new RecordProcessor")
296}
297
298// ProcessRecords process data records. vmware kcl will invoke this method to
299// deliver data records.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected