public class BlockingGetRecordsCache extends Object implements GetRecordsCache
| Constructor and Description |
|---|
BlockingGetRecordsCache(int maxRecordsPerCall,
GetRecordsRetrievalStrategy getRecordsRetrievalStrategy,
long idleMillisBetweenCalls) |
| Modifier and Type | Method and Description |
|---|---|
GetRecordsRetrievalStrategy |
getGetRecordsRetrievalStrategy() |
ProcessRecordsInput |
getNextResult()
This method returns the next set of records from the Cache if present, or blocks the request till it gets the
next set of records back from Kinesis.
|
void |
shutdown()
This method calls the shutdown behavior on the cache, if available.
|
void |
start()
This method calls the start behavior on the cache, if available.
|
public BlockingGetRecordsCache(int maxRecordsPerCall,
GetRecordsRetrievalStrategy getRecordsRetrievalStrategy,
long idleMillisBetweenCalls)
public void start()
GetRecordsCachestart in interface GetRecordsCachepublic ProcessRecordsInput getNextResult()
GetRecordsCachegetNextResult in interface GetRecordsCachepublic GetRecordsRetrievalStrategy getGetRecordsRetrievalStrategy()
getGetRecordsRetrievalStrategy in interface GetRecordsCachepublic void shutdown()
GetRecordsCacheshutdown in interface GetRecordsCacheCopyright © 2017. All rights reserved.