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)
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dataFetcher, getDataFetcherOverride
public 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)
GetRecordsRetrievalStrategy
getRecords
in interface GetRecordsRetrievalStrategy
maxRecords
- passed to Kinesis, and can be used to restrict the number of records returned from Kinesis.public void shutdown()
GetRecordsRetrievalStrategy
GetRecordsRetrievalStrategy.getRecords(int)
.shutdown
in interface GetRecordsRetrievalStrategy
public boolean isShutdown()
GetRecordsRetrievalStrategy
isShutdown
in interface GetRecordsRetrievalStrategy
public KinesisDataFetcher getDataFetcher()
GetRecordsRetrievalStrategy
getDataFetcher
in interface GetRecordsRetrievalStrategy
Copyright © 2022. All rights reserved.