public class KinesisShardConsumerFactory extends Object implements IShardConsumerFactory
| Constructor and Description |
|---|
KinesisShardConsumerFactory() |
| Modifier and Type | Method and Description |
|---|---|
IShardConsumer |
createShardConsumer(ShardInfo shardInfo,
StreamConfig streamConfig,
ICheckpoint checkpointTracker,
IRecordProcessor recordProcessor,
RecordProcessorCheckpointer recordProcessorCheckpointer,
KinesisClientLibLeaseCoordinator leaseCoordinator,
long parentShardPollIntervalMillis,
boolean cleanupLeasesUponShardCompletion,
ExecutorService executorService,
IMetricsFactory metricsFactory,
long taskBackoffTimeMillis,
boolean skipShardSyncAtWorkerInitializationIfLeasesExist,
Optional<Integer> retryGetRecordsInSeconds,
Optional<Integer> maxGetRecordsThreadPool,
KinesisClientLibConfiguration config,
ShardSyncer shardSyncer,
ShardSyncStrategy shardSyncStrategy,
LeaseCleanupManager leaseCleanupManager)
Returns a shard consumer to be used for consuming a (assigned) shard.
|
public IShardConsumer createShardConsumer(ShardInfo shardInfo, StreamConfig streamConfig, ICheckpoint checkpointTracker, IRecordProcessor recordProcessor, RecordProcessorCheckpointer recordProcessorCheckpointer, KinesisClientLibLeaseCoordinator leaseCoordinator, long parentShardPollIntervalMillis, boolean cleanupLeasesUponShardCompletion, ExecutorService executorService, IMetricsFactory metricsFactory, long taskBackoffTimeMillis, boolean skipShardSyncAtWorkerInitializationIfLeasesExist, Optional<Integer> retryGetRecordsInSeconds, Optional<Integer> maxGetRecordsThreadPool, KinesisClientLibConfiguration config, ShardSyncer shardSyncer, ShardSyncStrategy shardSyncStrategy, LeaseCleanupManager leaseCleanupManager)
IShardConsumerFactorycreateShardConsumer in interface IShardConsumerFactoryCopyright © 2023. All rights reserved.