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 java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ClientConfigBuilder()
-
Method Summary
-
-
-
Method Detail
-
setStoreName
public ClientConfig.ClientConfigBuilder<K,V,T> setStoreName(java.lang.String storeName)
-
setMetricsRepository
public ClientConfig.ClientConfigBuilder<K,V,T> setMetricsRepository(io.tehuti.metrics.MetricsRepository metricsRepository)
-
setStatsPrefix
public ClientConfig.ClientConfigBuilder<K,V,T> setStatsPrefix(java.lang.String statsPrefix)
-
setSpeculativeQueryEnabled
public ClientConfig.ClientConfigBuilder<K,V,T> setSpeculativeQueryEnabled(boolean speculativeQueryEnabled)
-
setSpecificValueClass
public ClientConfig.ClientConfigBuilder<K,V,T> setSpecificValueClass(java.lang.Class<T> specificValueClass)
-
setDeserializationExecutor
public ClientConfig.ClientConfigBuilder<K,V,T> setDeserializationExecutor(java.util.concurrent.Executor deserializationExecutor)
-
setClientRoutingStrategyType
public ClientConfig.ClientConfigBuilder<K,V,T> setClientRoutingStrategyType(ClientRoutingStrategyType clientRoutingStrategyType)
-
setR2Client
public ClientConfig.ClientConfigBuilder<K,V,T> setR2Client(com.linkedin.r2.transport.common.Client r2Client)
-
setDualReadEnabled
public ClientConfig.ClientConfigBuilder<K,V,T> setDualReadEnabled(boolean dualReadEnabled)
-
setGenericThinClient
public ClientConfig.ClientConfigBuilder<K,V,T> setGenericThinClient(AvroGenericStoreClient<K,V> genericThinClient)
-
setSpecificThinClient
public ClientConfig.ClientConfigBuilder<K,V,T> setSpecificThinClient(AvroSpecificStoreClient<K,T> specificThinClient)
-
setRoutingLeakedRequestCleanupThresholdMS
public ClientConfig.ClientConfigBuilder<K,V,T> setRoutingLeakedRequestCleanupThresholdMS(long routingLeakedRequestCleanupThresholdMS)
-
setRoutingQuotaExceededRequestCounterResetDelayMS
public ClientConfig.ClientConfigBuilder<K,V,T> setRoutingQuotaExceededRequestCounterResetDelayMS(long routingQuotaExceededRequestCounterResetDelayMS)
-
setRoutingErrorRequestCounterResetDelayMS
public ClientConfig.ClientConfigBuilder<K,V,T> setRoutingErrorRequestCounterResetDelayMS(long routingErrorRequestCounterResetDelayMS)
-
setRoutingUnavailableRequestCounterResetDelayMS
public ClientConfig.ClientConfigBuilder<K,V,T> setRoutingUnavailableRequestCounterResetDelayMS(long routingUnavailableRequestCounterResetDelayMS)
-
setRoutingPendingRequestCounterInstanceBlockThreshold
public ClientConfig.ClientConfigBuilder<K,V,T> setRoutingPendingRequestCounterInstanceBlockThreshold(int routingPendingRequestCounterInstanceBlockThreshold)
-
setDaVinciClientForMetaStore
public ClientConfig.ClientConfigBuilder<K,V,T> setDaVinciClientForMetaStore(DaVinciClient<StoreMetaKey,StoreMetaValue> daVinciClientForMetaStore)
-
setThinClientForMetaStore
public ClientConfig.ClientConfigBuilder<K,V,T> setThinClientForMetaStore(AvroSpecificStoreClient<StoreMetaKey,StoreMetaValue> thinClientForMetaStore)
-
setIsMetadataConnWarmupEnabled
public ClientConfig.ClientConfigBuilder<K,V,T> setIsMetadataConnWarmupEnabled(boolean isMetadataConnWarmupEnabled)
-
setMetadataRefreshIntervalInSeconds
public ClientConfig.ClientConfigBuilder<K,V,T> setMetadataRefreshIntervalInSeconds(long metadataRefreshIntervalInSeconds)
-
setMetadataConnWarmupTimeoutInSeconds
public ClientConfig.ClientConfigBuilder<K,V,T> setMetadataConnWarmupTimeoutInSeconds(long metadataConnWarmupTimeoutInSeconds)
-
setLongTailRetryEnabledForSingleGet
public ClientConfig.ClientConfigBuilder<K,V,T> setLongTailRetryEnabledForSingleGet(boolean longTailRetryEnabledForSingleGet)
-
setLongTailRetryThresholdForSingleGetInMicroSeconds
public ClientConfig.ClientConfigBuilder<K,V,T> setLongTailRetryThresholdForSingleGetInMicroSeconds(int longTailRetryThresholdForSingleGetInMicroSeconds)
-
setLongTailRetryEnabledForBatchGet
public ClientConfig.ClientConfigBuilder<K,V,T> setLongTailRetryEnabledForBatchGet(boolean longTailRetryEnabledForBatchGet)
-
setLongTailRetryThresholdForBatchGetInMicroSeconds
public ClientConfig.ClientConfigBuilder<K,V,T> setLongTailRetryThresholdForBatchGetInMicroSeconds(int longTailRetryThresholdForBatchGetInMicroSeconds)
-
setLongTailRetryEnabledForCompute
public ClientConfig.ClientConfigBuilder<K,V,T> setLongTailRetryEnabledForCompute(boolean longTailRetryEnabledForCompute)
-
setLongTailRetryThresholdForComputeInMicroSeconds
public ClientConfig.ClientConfigBuilder<K,V,T> setLongTailRetryThresholdForComputeInMicroSeconds(int longTailRetryThresholdForComputeInMicroSeconds)
-
setVsonStore
@Deprecated public ClientConfig.ClientConfigBuilder<K,V,T> setVsonStore(boolean vsonStore)
Deprecated.
-
setStoreMetadataFetchMode
public ClientConfig.ClientConfigBuilder<K,V,T> setStoreMetadataFetchMode(StoreMetadataFetchMode storeMetadataFetchMode)
-
setD2Client
public ClientConfig.ClientConfigBuilder<K,V,T> setD2Client(com.linkedin.d2.balancer.D2Client d2Client)
-
setClusterDiscoveryD2Service
public ClientConfig.ClientConfigBuilder<K,V,T> setClusterDiscoveryD2Service(java.lang.String clusterDiscoveryD2Service)
-
setUseGrpc
public ClientConfig.ClientConfigBuilder<K,V,T> setUseGrpc(boolean useGrpc)
-
setGrpcClientConfig
public ClientConfig.ClientConfigBuilder<K,V,T> setGrpcClientConfig(GrpcClientConfig grpcClientConfig)
-
setProjectionFieldValidationEnabled
public ClientConfig.ClientConfigBuilder<K,V,T> setProjectionFieldValidationEnabled(boolean projectionFieldValidation)
-
setLongTailRetryBudgetEnforcementWindowInMs
public ClientConfig.ClientConfigBuilder<K,V,T> setLongTailRetryBudgetEnforcementWindowInMs(long longTailRetryBudgetEnforcementWindowInMs)
-
setHARClusters
public ClientConfig.ClientConfigBuilder<K,V,T> setHARClusters(java.util.Set<java.lang.String> clusters)
-
clone
public ClientConfig.ClientConfigBuilder<K,V,T> clone()
- Overrides:
clone
in classjava.lang.Object
-
build
public ClientConfig<K,V,T> build()
-
-