Initialize is invoked by the Amazon Kinesis Client Library before data records are delivered to the RecordProcessor instance (via processRecords).
(input *interfaces.InitializationInput)
| 287 | // Initialize is invoked by the Amazon Kinesis Client Library before data |
| 288 | // records are delivered to the RecordProcessor instance (via processRecords). |
| 289 | func (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. |
nothing calls this directly
no outgoing calls
no test coverage detected