public interface RecordsFetcherFactory
Modifier and Type | Method and Description |
---|---|
RecordsPublisher |
createRecordsFetcher(GetRecordsRetrievalStrategy getRecordsRetrievalStrategy,
String shardId,
MetricsFactory metricsFactory,
int maxRecords)
Returns a RecordsPublisher to be used for retrieving records for a given shard.
|
DataFetchingStrategy |
dataFetchingStrategy() |
void |
dataFetchingStrategy(DataFetchingStrategy dataFetchingStrategy)
Sets the dataFetchingStrategy to determine the type of RecordsPublisher to be used.
|
long |
idleMillisBetweenCalls() |
void |
idleMillisBetweenCalls(long idleMillisBetweenCalls)
Sets the maximum idle time between two get calls.
|
int |
maxByteSize() |
void |
maxByteSize(int maxByteSize)
Sets the max byte size for the RecordsPublisher, before further requests are blocked.
|
int |
maxPendingProcessRecordsInput() |
void |
maxPendingProcessRecordsInput(int maxPendingProcessRecordsInput)
Sets the maximum number of ProcessRecordsInput objects the RecordsPublisher can hold, before further requests are
blocked.
|
int |
maxRecordsCount() |
void |
maxRecordsCount(int maxRecordsCount)
Sets the max number of records for the RecordsPublisher can hold, before further requests are blocked.
|
RecordsPublisher createRecordsFetcher(GetRecordsRetrievalStrategy getRecordsRetrievalStrategy, String shardId, MetricsFactory metricsFactory, int maxRecords)
getRecordsRetrievalStrategy
- GetRecordsRetrievalStrategy to be used with the RecordsPublishershardId
- 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 maxPendingProcessRecordsInput(int maxPendingProcessRecordsInput)
maxPendingProcessRecordsInput
- The maximum number of ProcessRecordsInput objects that the cache will accept
before blocking.int maxPendingProcessRecordsInput()
void maxByteSize(int maxByteSize)
maxByteSize
- The maximum byte size for the cache before blocking.int maxByteSize()
void maxRecordsCount(int maxRecordsCount)
maxRecordsCount
- The mximum number of records in the cache before blocking.int maxRecordsCount()
void dataFetchingStrategy(DataFetchingStrategy dataFetchingStrategy)
dataFetchingStrategy
- Fetching strategy to be usedDataFetchingStrategy dataFetchingStrategy()
void idleMillisBetweenCalls(long idleMillisBetweenCalls)
idleMillisBetweenCalls
- Sleep millis between calls.long idleMillisBetweenCalls()
Copyright © 2019. All rights reserved.