Package com.linkedin.venice.fastclient
Class ClientConfig.ClientConfigBuilder<K,V,T extends org.apache.avro.specific.SpecificRecord>
java.lang.Object
com.linkedin.venice.fastclient.ClientConfig.ClientConfigBuilder<K,V,T>
- Enclosing class:
- ClientConfig<K,
V, T extends org.apache.avro.specific.SpecificRecord>
public static class ClientConfig.ClientConfigBuilder<K,V,T extends org.apache.avro.specific.SpecificRecord>
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClientConfig<K,
V, T> build()
clone()
setClientRoutingStrategyType
(ClientRoutingStrategyType clientRoutingStrategyType) setClusterDiscoveryD2Service
(String clusterDiscoveryD2Service) setD2Client
(com.linkedin.d2.balancer.D2Client d2Client) setDaVinciClientForMetaStore
(DaVinciClient<StoreMetaKey, StoreMetaValue> daVinciClientForMetaStore) setDeserializationExecutor
(Executor deserializationExecutor) setDualReadEnabled
(boolean dualReadEnabled) setGenericThinClient
(AvroGenericStoreClient<K, V> genericThinClient) setGrpcClientConfig
(GrpcClientConfig grpcClientConfig) setHARClusters
(Set<String> clusters) setIsMetadataConnWarmupEnabled
(boolean isMetadataConnWarmupEnabled) setLongTailRetryBudgetEnforcementWindowInMs
(long longTailRetryBudgetEnforcementWindowInMs) setLongTailRetryEnabledForBatchGet
(boolean longTailRetryEnabledForBatchGet) setLongTailRetryEnabledForCompute
(boolean longTailRetryEnabledForCompute) setLongTailRetryEnabledForSingleGet
(boolean longTailRetryEnabledForSingleGet) setLongTailRetryThresholdForBatchGetInMicroSeconds
(int longTailRetryThresholdForBatchGetInMicroSeconds) setLongTailRetryThresholdForComputeInMicroSeconds
(int longTailRetryThresholdForComputeInMicroSeconds) setLongTailRetryThresholdForSingleGetInMicroSeconds
(int longTailRetryThresholdForSingleGetInMicroSeconds) setMetadataConnWarmupTimeoutInSeconds
(long metadataConnWarmupTimeoutInSeconds) setMetadataRefreshIntervalInSeconds
(long metadataRefreshIntervalInSeconds) setMetricsRepository
(io.tehuti.metrics.MetricsRepository metricsRepository) setProjectionFieldValidationEnabled
(boolean projectionFieldValidation) setR2Client
(com.linkedin.r2.transport.common.Client r2Client) setRoutingErrorRequestCounterResetDelayMS
(long routingErrorRequestCounterResetDelayMS) setRoutingLeakedRequestCleanupThresholdMS
(long routingLeakedRequestCleanupThresholdMS) setRoutingPendingRequestCounterInstanceBlockThreshold
(int routingPendingRequestCounterInstanceBlockThreshold) setRoutingQuotaExceededRequestCounterResetDelayMS
(long routingQuotaExceededRequestCounterResetDelayMS) setRoutingUnavailableRequestCounterResetDelayMS
(long routingUnavailableRequestCounterResetDelayMS) setSpecificThinClient
(AvroSpecificStoreClient<K, T> specificThinClient) setSpecificValueClass
(Class<T> specificValueClass) setSpeculativeQueryEnabled
(boolean speculativeQueryEnabled) setStatsPrefix
(String statsPrefix) setStoreMetadataFetchMode
(StoreMetadataFetchMode storeMetadataFetchMode) setStoreName
(String storeName) setThinClientForMetaStore
(AvroSpecificStoreClient<StoreMetaKey, StoreMetaValue> thinClientForMetaStore) setUseGrpc
(boolean useGrpc) setVsonStore
(boolean vsonStore) Deprecated.
-
Constructor Details
-
ClientConfigBuilder
public ClientConfigBuilder()
-
-
Method Details
-
setStoreName
-
setMetricsRepository
public ClientConfig.ClientConfigBuilder<K,V, setMetricsRepositoryT> (io.tehuti.metrics.MetricsRepository metricsRepository) -
setStatsPrefix
-
setSpeculativeQueryEnabled
public ClientConfig.ClientConfigBuilder<K,V, setSpeculativeQueryEnabledT> (boolean speculativeQueryEnabled) -
setSpecificValueClass
-
setDeserializationExecutor
public ClientConfig.ClientConfigBuilder<K,V, setDeserializationExecutorT> (Executor deserializationExecutor) -
setClientRoutingStrategyType
public ClientConfig.ClientConfigBuilder<K,V, setClientRoutingStrategyTypeT> (ClientRoutingStrategyType clientRoutingStrategyType) -
setR2Client
public ClientConfig.ClientConfigBuilder<K,V, setR2ClientT> (com.linkedin.r2.transport.common.Client r2Client) -
setDualReadEnabled
-
setGenericThinClient
public ClientConfig.ClientConfigBuilder<K,V, setGenericThinClientT> (AvroGenericStoreClient<K, V> genericThinClient) -
setSpecificThinClient
public ClientConfig.ClientConfigBuilder<K,V, setSpecificThinClientT> (AvroSpecificStoreClient<K, T> specificThinClient) -
setRoutingLeakedRequestCleanupThresholdMS
public ClientConfig.ClientConfigBuilder<K,V, setRoutingLeakedRequestCleanupThresholdMST> (long routingLeakedRequestCleanupThresholdMS) -
setRoutingQuotaExceededRequestCounterResetDelayMS
public ClientConfig.ClientConfigBuilder<K,V, setRoutingQuotaExceededRequestCounterResetDelayMST> (long routingQuotaExceededRequestCounterResetDelayMS) -
setRoutingErrorRequestCounterResetDelayMS
public ClientConfig.ClientConfigBuilder<K,V, setRoutingErrorRequestCounterResetDelayMST> (long routingErrorRequestCounterResetDelayMS) -
setRoutingPendingRequestCounterInstanceBlockThreshold
public ClientConfig.ClientConfigBuilder<K,V, setRoutingPendingRequestCounterInstanceBlockThresholdT> (int routingPendingRequestCounterInstanceBlockThreshold) -
setDaVinciClientForMetaStore
public ClientConfig.ClientConfigBuilder<K,V, setDaVinciClientForMetaStoreT> (DaVinciClient<StoreMetaKey, StoreMetaValue> daVinciClientForMetaStore) -
setThinClientForMetaStore
public ClientConfig.ClientConfigBuilder<K,V, setThinClientForMetaStoreT> (AvroSpecificStoreClient<StoreMetaKey, StoreMetaValue> thinClientForMetaStore) -
setIsMetadataConnWarmupEnabled
public ClientConfig.ClientConfigBuilder<K,V, setIsMetadataConnWarmupEnabledT> (boolean isMetadataConnWarmupEnabled) -
setMetadataRefreshIntervalInSeconds
public ClientConfig.ClientConfigBuilder<K,V, setMetadataRefreshIntervalInSecondsT> (long metadataRefreshIntervalInSeconds) -
setMetadataConnWarmupTimeoutInSeconds
public ClientConfig.ClientConfigBuilder<K,V, setMetadataConnWarmupTimeoutInSecondsT> (long metadataConnWarmupTimeoutInSeconds) -
setLongTailRetryEnabledForSingleGet
public ClientConfig.ClientConfigBuilder<K,V, setLongTailRetryEnabledForSingleGetT> (boolean longTailRetryEnabledForSingleGet) -
setLongTailRetryThresholdForSingleGetInMicroSeconds
public ClientConfig.ClientConfigBuilder<K,V, setLongTailRetryThresholdForSingleGetInMicroSecondsT> (int longTailRetryThresholdForSingleGetInMicroSeconds) -
setLongTailRetryEnabledForBatchGet
public ClientConfig.ClientConfigBuilder<K,V, setLongTailRetryEnabledForBatchGetT> (boolean longTailRetryEnabledForBatchGet) -
setLongTailRetryThresholdForBatchGetInMicroSeconds
public ClientConfig.ClientConfigBuilder<K,V, setLongTailRetryThresholdForBatchGetInMicroSecondsT> (int longTailRetryThresholdForBatchGetInMicroSeconds) -
setLongTailRetryEnabledForCompute
public ClientConfig.ClientConfigBuilder<K,V, setLongTailRetryEnabledForComputeT> (boolean longTailRetryEnabledForCompute) -
setLongTailRetryThresholdForComputeInMicroSeconds
public ClientConfig.ClientConfigBuilder<K,V, setLongTailRetryThresholdForComputeInMicroSecondsT> (int longTailRetryThresholdForComputeInMicroSeconds) -
setVsonStore
Deprecated. -
setStoreMetadataFetchMode
public ClientConfig.ClientConfigBuilder<K,V, setStoreMetadataFetchModeT> (StoreMetadataFetchMode storeMetadataFetchMode) -
setD2Client
public ClientConfig.ClientConfigBuilder<K,V, setD2ClientT> (com.linkedin.d2.balancer.D2Client d2Client) -
setClusterDiscoveryD2Service
public ClientConfig.ClientConfigBuilder<K,V, setClusterDiscoveryD2ServiceT> (String clusterDiscoveryD2Service) -
setUseGrpc
-
setGrpcClientConfig
public ClientConfig.ClientConfigBuilder<K,V, setGrpcClientConfigT> (GrpcClientConfig grpcClientConfig) -
setProjectionFieldValidationEnabled
public ClientConfig.ClientConfigBuilder<K,V, setProjectionFieldValidationEnabledT> (boolean projectionFieldValidation) -
setLongTailRetryBudgetEnforcementWindowInMs
public ClientConfig.ClientConfigBuilder<K,V, setLongTailRetryBudgetEnforcementWindowInMsT> (long longTailRetryBudgetEnforcementWindowInMs) -
setHARClusters
-
clone
-
build
-