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)
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
getDataFetcherOverride
public SynchronousGetRecordsRetrievalStrategy()
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
public DataFetcher dataFetcher()
GetRecordsRetrievalStrategy
dataFetcher
in interface GetRecordsRetrievalStrategy
Copyright © 2022. All rights reserved.