public class AsynchronousGetRecordsRetrievalStrategy extends Object implements GetRecordsRetrievalStrategy
| Constructor and Description |
|---|
AsynchronousGetRecordsRetrievalStrategy(KinesisDataFetcher dataFetcher,
ExecutorService executorService,
int retryGetRecordsInSeconds,
String shardId) |
AsynchronousGetRecordsRetrievalStrategy(KinesisDataFetcher dataFetcher,
int retryGetRecordsInSeconds,
int maxGetRecordsThreadPool,
String shardId) |
| Modifier and Type | Method and Description |
|---|---|
KinesisDataFetcher |
getDataFetcher()
Returns the KinesisDataFetcher used to records from Kinesis.
|
software.amazon.awssdk.services.kinesis.model.GetRecordsResponse |
getRecords(int maxRecords)
Gets a set of records from Kinesis.
|
boolean |
isShutdown()
Returns whether this strategy has been shutdown.
|
void |
shutdown()
Releases any resources used by the strategy.
|
public AsynchronousGetRecordsRetrievalStrategy(@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)
GetRecordsRetrievalStrategygetRecords in interface GetRecordsRetrievalStrategymaxRecords - passed to Kinesis, and can be used to restrict the number of records returned from Kinesis.public void shutdown()
GetRecordsRetrievalStrategyGetRecordsRetrievalStrategy.getRecords(int).shutdown in interface GetRecordsRetrievalStrategypublic boolean isShutdown()
GetRecordsRetrievalStrategyisShutdown in interface GetRecordsRetrievalStrategypublic KinesisDataFetcher getDataFetcher()
GetRecordsRetrievalStrategygetDataFetcher in interface GetRecordsRetrievalStrategyCopyright © 2019. All rights reserved.