public class SynchronousGetRecordsRetrievalStrategy extends Object implements GetRecordsRetrievalStrategy
| Constructor and Description |
|---|
SynchronousGetRecordsRetrievalStrategy() |
| Modifier and Type | Method and Description |
|---|---|
DataFetcher |
dataFetcher()
Returns a dataFetcher by first checking for an override if it exists, else using the default data fetcher.
|
KinesisDataFetcher |
getDataFetcher()
Returns a DataFetcher used to records from Kinesis.
|
software.amazon.awssdk.services.kinesis.model.GetRecordsResponse |
getRecords(int maxRecords)
Deprecated.
|
GetRecordsResponseAdapter |
getRecordsAdapter(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, waitgetDataFetcherOverridepublic SynchronousGetRecordsRetrievalStrategy()
@Deprecated public software.amazon.awssdk.services.kinesis.model.GetRecordsResponse getRecords(int maxRecords)
getRecords in interface GetRecordsRetrievalStrategypublic GetRecordsResponseAdapter getRecordsAdapter(int maxRecords)
GetRecordsRetrievalStrategygetRecordsAdapter in interface GetRecordsRetrievalStrategymaxRecords - passed to Kinesis, and can be used to restrict the number of records returned from Kinesis.public void shutdown()
GetRecordsRetrievalStrategyGetRecordsRetrievalStrategy.getRecordsAdapter(int).shutdown in interface GetRecordsRetrievalStrategypublic boolean isShutdown()
GetRecordsRetrievalStrategyisShutdown in interface GetRecordsRetrievalStrategypublic KinesisDataFetcher getDataFetcher()
GetRecordsRetrievalStrategygetDataFetcher in interface GetRecordsRetrievalStrategypublic DataFetcher dataFetcher()
GetRecordsRetrievalStrategydataFetcher in interface GetRecordsRetrievalStrategyCopyright © 2025. All rights reserved.