public class AsynchronousGetRecordsRetrievalStrategy extends Object implements GetRecordsRetrievalStrategy
| Constructor and Description |
|---|
AsynchronousGetRecordsRetrievalStrategy(KinesisDataFetcher dataFetcher,
ExecutorService executorService,
int retryGetRecordsInSeconds,
String shardId) |
AsynchronousGetRecordsRetrievalStrategy(@NonNull KinesisDataFetcher dataFetcher,
int retryGetRecordsInSeconds,
int maxGetRecordsThreadPool,
String shardId) |
| Modifier and Type | Method and Description |
|---|---|
KinesisDataFetcher |
getDataFetcher()
Returns a DataFetcher used to records from Kinesis.
|
software.amazon.awssdk.services.kinesis.model.GetRecordsResponse |
getRecords(int maxRecords) |
boolean |
isShutdown()
Returns whether this strategy has been shutdown.
|
void |
shutdown()
Releases any resources used by the strategy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdataFetcher, getDataFetcherOverride, getRecordsAdapterpublic AsynchronousGetRecordsRetrievalStrategy(@NonNull
@NonNull KinesisDataFetcher dataFetcher,
int retryGetRecordsInSeconds,
int maxGetRecordsThreadPool,
String shardId)
public AsynchronousGetRecordsRetrievalStrategy(KinesisDataFetcher dataFetcher, ExecutorService executorService, int retryGetRecordsInSeconds, String shardId)
public software.amazon.awssdk.services.kinesis.model.GetRecordsResponse getRecords(int maxRecords)
getRecords in interface GetRecordsRetrievalStrategypublic void shutdown()
GetRecordsRetrievalStrategyGetRecordsRetrievalStrategy.getRecordsAdapter(int).shutdown in interface GetRecordsRetrievalStrategypublic boolean isShutdown()
GetRecordsRetrievalStrategyisShutdown in interface GetRecordsRetrievalStrategypublic KinesisDataFetcher getDataFetcher()
GetRecordsRetrievalStrategygetDataFetcher in interface GetRecordsRetrievalStrategyCopyright © 2025. All rights reserved.