public void handler(KinesisEvent event, Context context) throws HandlerException { if (!initialized) { init(context); } KinesisHandlerConfig handlerConfig = (KinesisHandlerConfig) this.config.getHandlerConfig(); this.recordIterator = new KinesisEventIterator(new LambdaContext(context), event.getRecords(), handlerConfig.getAddShardIdToPartitions()); /* * Get processors based on the source stream ARN */ KinesisEventRecord firstRecord = event.getRecords().get(0); this.source = SourceUtils.getSource(firstRecord.getEventSourceARN(), sources); super.process(context); }
public void handler(KinesisEvent event, Context context) throws HandlerException { if (!initialized) { init(context); } KinesisHandlerConfig handlerConfig = (KinesisHandlerConfig) this.config.getHandlerConfig(); this.recordIterator = new KinesisEventIterator(new LambdaContext(context), event.getRecords(), handlerConfig.getAddShardIdToPartitions()); /* * Get processors based on the source stream ARN */ KinesisEventRecord firstRecord = event.getRecords().get(0); this.source = SourceUtils.getSource(firstRecord.getEventSourceARN(), sources); super.process(context); }