public interface RecordsFetcherFactory
| Modifier and Type | Method and Description |
|---|---|
GetRecordsCache |
createRecordsFetcher(GetRecordsRetrievalStrategy getRecordsRetrievalStrategy,
String shardId,
IMetricsFactory metricsFactory,
int maxRecords)
Returns a GetRecordsCache to be used for retrieving records for a given shard.
|
void |
setDataFetchingStrategy(DataFetchingStrategy dataFetchingStrategy)
Sets the dataFetchingStrategy to determine the type of GetRecordsCache to be used.
|
void |
setIdleMillisBetweenCalls(long idleMillisBetweenCalls)
Sets the maximum idle time between two get calls.
|
void |
setMaxByteSize(int maxByteSize)
Sets the max byte size for the GetRecordsCache, before further requests are blocked.
|
void |
setMaxPendingProcessRecordsInput(int maxPendingProcessRecordsInput)
Sets the maximum number of ProcessRecordsInput objects the GetRecordsCache can hold, before further requests are
blocked.
|
void |
setMaxRecordsCount(int maxRecordsCount)
Sets the max number of records for the GetRecordsCache can hold, before further requests are blocked.
|
GetRecordsCache createRecordsFetcher(GetRecordsRetrievalStrategy getRecordsRetrievalStrategy, String shardId, IMetricsFactory metricsFactory, int maxRecords)
getRecordsRetrievalStrategy - GetRecordsRetrievalStrategy to be used with the GetRecordsCacheshardId - ShardId of the shard that the fetcher will retrieve records formetricsFactory - MetricsFactory used to create metricScopemaxRecords - Max number of records to be returned in a single get callvoid setMaxPendingProcessRecordsInput(int maxPendingProcessRecordsInput)
maxPendingProcessRecordsInput - The maximum number of ProcessRecordsInput objects that the cache will accept
before blocking.void setMaxByteSize(int maxByteSize)
maxByteSize - The maximum byte size for the cache before blocking.void setMaxRecordsCount(int maxRecordsCount)
maxRecordsCount - The mximum number of records in the cache before blocking.void setDataFetchingStrategy(DataFetchingStrategy dataFetchingStrategy)
dataFetchingStrategy - Fetching strategy to be usedvoid setIdleMillisBetweenCalls(long idleMillisBetweenCalls)
idleMillisBetweenCalls - Sleep millis between calls.Copyright © 2018. All rights reserved.