public class SynchronousBlockingRetrievalFactory extends Object implements RetrievalFactory
| Constructor and Description |
|---|
SynchronousBlockingRetrievalFactory(String streamName,
software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisClient,
RecordsFetcherFactory recordsFetcherFactory,
int maxRecords,
Duration kinesisRequestTimeout,
Function<DataFetcherProviderConfig,DataFetcher> dataFetcherProvider,
SleepTimeController sleepTimeController) |
| Modifier and Type | Method and Description |
|---|---|
RecordsPublisher |
createGetRecordsCache(@NonNull ShardInfo shardInfo,
@NonNull StreamConfig streamConfig,
@NonNull MetricsFactory metricsFactory)
Creates a
RecordsPublisher instance to retrieve records for the specified shard. |
RecordsPublisher |
createGetRecordsCache(@NonNull ShardInfo shardInfo,
@NonNull StreamConfig streamConfig,
@NonNull MetricsFactory metricsFactory,
String consumerId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateGetRecordsCache, createGetRecordsRetrievalStrategypublic SynchronousBlockingRetrievalFactory(String streamName, software.amazon.awssdk.services.kinesis.KinesisAsyncClient kinesisClient, RecordsFetcherFactory recordsFetcherFactory, int maxRecords, Duration kinesisRequestTimeout, Function<DataFetcherProviderConfig,DataFetcher> dataFetcherProvider, SleepTimeController sleepTimeController)
public RecordsPublisher createGetRecordsCache(@NonNull @NonNull ShardInfo shardInfo, @NonNull @NonNull StreamConfig streamConfig, @NonNull @NonNull MetricsFactory metricsFactory)
RetrievalFactoryRecordsPublisher instance to retrieve records for the specified shard.createGetRecordsCache in interface RetrievalFactoryshardInfo - The ShardInfo representing the shard for which records are to be retrieved.streamConfig - The StreamConfig containing details for the stream.metricsFactory - The MetricsFactory for recording metrics.RecordsPublisher instance for retrieving records from the shard.public RecordsPublisher createGetRecordsCache(@NonNull @NonNull ShardInfo shardInfo, @NonNull @NonNull StreamConfig streamConfig, @NonNull @NonNull MetricsFactory metricsFactory, String consumerId)
createGetRecordsCache in interface RetrievalFactoryCopyright © 2025. All rights reserved.