}
// If a metrics factory was specified, use it.
if (metricFactory != null) {
worker =
new Worker(getKinesisConnectorRecordProcessorFactory(),
kinesisClientLibConfiguration,
metricFactory);
} else {
worker = new Worker(getKinesisConnectorRecordProcessorFactory(), kinesisClientLibConfiguration);
}
LOG.info(getClass().getSimpleName() + " worker created");
}