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) |
| 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. |
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)
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.Copyright © 2024. All rights reserved.