public class SynchronousGetRecordsRetrievalStrategy extends Object implements GetRecordsRetrievalStrategy
| Constructor and Description |
|---|
SynchronousGetRecordsRetrievalStrategy() |
| Modifier and Type | Method and Description |
|---|---|
com.amazonaws.services.kinesis.clientlibrary.lib.worker.KinesisDataFetcher |
getDataFetcher()
Returns the KinesisDataFetcher used to getRecords from Kinesis.
|
com.amazonaws.services.kinesis.model.GetRecordsResult |
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 SynchronousGetRecordsRetrievalStrategy()
public com.amazonaws.services.kinesis.model.GetRecordsResult 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 com.amazonaws.services.kinesis.clientlibrary.lib.worker.KinesisDataFetcher getDataFetcher()
GetRecordsRetrievalStrategygetDataFetcher in interface GetRecordsRetrievalStrategyCopyright © 2018. All rights reserved.