Package com.linkedin.venice.client.store
Class ClientConfig<T extends org.apache.avro.specific.SpecificRecord>
java.lang.Object
com.linkedin.venice.client.store.ClientConfig<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <V extends org.apache.avro.specific.SpecificRecord>
ClientConfig<V>cloneConfig
(ClientConfig<V> config) static ClientConfig
defaultGenericClientConfig
(String storeName) static <V extends org.apache.avro.specific.SpecificRecord>
ClientConfig<V>defaultSpecificClientConfig
(String storeName, Class<V> specificValueClass) static ClientConfig
defaultVsonGenericClientConfig
(String storeName) Deprecated.boolean
getBatchGetDeserializer
(Executor executor) com.linkedin.d2.balancer.D2Client
int
int
int
io.tehuti.metrics.MetricsRepository
long
int
io.tehuti.utils.Time
getTime()
int
hashCode()
boolean
boolean
boolean
boolean
isHttps()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Deprecated.setAlwaysOnDeserializerNumberOfThreads
(int alwaysOnDeserializerNumberOfThreads) Deprecated.setAlwaysOnDeserializerQueueCapacity
(int alwaysOnDeserializerQueueCapacity) Deprecated.setBatchDeserializerType
(BatchDeserializerType batchDeserializerType) setD2BasePath
(String d2BasePath) setD2Client
(com.linkedin.d2.balancer.D2Client d2Client) setD2ServiceName
(String d2ServiceName) setD2ZkTimeout
(int d2ZkTimeout) setDeserializationExecutor
(Executor deserializationExecutor) Provide an arbitrary executor to execute client requests in, rather than letting the client use its own internally-generated executor.setForceClusterDiscoveryAtStartTime
(boolean forceClusterDiscoveryAtStartTime) setHttpClient5Http2Enabled
(boolean httpClient5Http2Enabled) setMaxConnectionsPerRoute
(int maxConnectionsPerRoute) setMaxConnectionsTotal
(int maxConnectionsTotal) setMetricsRepository
(io.tehuti.metrics.MetricsRepository metricsRepository) setMultiGetEnvelopeIterableImpl
(AvroGenericDeserializer.IterableImpl multiGetEnvelopeIterableImpl) Deprecated.setOnDemandDeserializerNumberOfRecordsPerThread
(int onDemandDeserializerNumberOfRecordsPerThread) Deprecated.setPreferredSchemaFilter
(Predicate<org.apache.avro.Schema> preferredSchemaFilter) setProjectionFieldValidationEnabled
(boolean projectionFieldValidation) setRemoteComputationOnly
(boolean remoteComputationOnly) setRetryBackOffInMs
(long retryBackOffInMs) setRetryCount
(int retryCount) setRetryExecutor
(Executor retryExecutor) setRetryOnAllErrors
(boolean value) setRetryOnRouterError
(boolean value) setSchemaRefreshPeriod
(Duration schemaRefreshPeriod) setSpecificValueClass
(Class<T> specificValueClass) setSslFactory
(SSLFactory sslEngineComponentFactory) setStatsPrefix
(String statsPrefix) setStoreName
(String storeName) setTime
(io.tehuti.utils.Time time) setUseBlackHoleDeserializer
(boolean useBlackHoleDeserializer) setUseFastAvro
(boolean useFastAvro) setVeniceURL
(String veniceURL) setVsonClient
(boolean isVonClient) Deprecated.
-
Field Details
-
DEFAULT_ZK_TIMEOUT_MS
public static final int DEFAULT_ZK_TIMEOUT_MS- See Also:
-
DEFAULT_CLUSTER_DISCOVERY_D2_SERVICE_NAME
- See Also:
-
DEFAULT_D2_ZK_BASE_PATH
- See Also:
-
DEFAULT_SCHEMA_REFRESH_PERIOD
-
-
Constructor Details
-
ClientConfig
public ClientConfig() -
ClientConfig
-
-
Method Details
-
defaultGenericClientConfig
-
defaultVsonGenericClientConfig
Deprecated. -
defaultSpecificClientConfig
public static <V extends org.apache.avro.specific.SpecificRecord> ClientConfig<V> defaultSpecificClientConfig(String storeName, Class<V> specificValueClass) -
cloneConfig
public static <V extends org.apache.avro.specific.SpecificRecord> ClientConfig<V> cloneConfig(ClientConfig<V> config) -
getStoreName
-
setStoreName
-
isForceClusterDiscoveryAtStartTime
public boolean isForceClusterDiscoveryAtStartTime() -
setForceClusterDiscoveryAtStartTime
public ClientConfig<T> setForceClusterDiscoveryAtStartTime(boolean forceClusterDiscoveryAtStartTime) -
getVeniceURL
-
setVeniceURL
- Parameters:
veniceURL
- If using D2, this should be D2 ZK address. Otherwise, it should be router address.
-
getStatsPrefix
-
setStatsPrefix
-
getSpecificValueClass
-
setSpecificValueClass
-
isSpecificClient
public boolean isSpecificClient() -
isD2Routing
public boolean isD2Routing() -
getD2ServiceName
-
setD2ServiceName
-
getD2BasePath
-
setD2BasePath
-
getD2ZkTimeout
public int getD2ZkTimeout() -
setD2ZkTimeout
-
getD2Client
public com.linkedin.d2.balancer.D2Client getD2Client() -
setD2Client
-
isHttps
public boolean isHttps() -
getSslFactory
-
setSslFactory
-
getMaxConnectionsPerRoute
public int getMaxConnectionsPerRoute() -
setMaxConnectionsPerRoute
-
getMaxConnectionsTotal
public int getMaxConnectionsTotal() -
setMaxConnectionsTotal
-
isHttpClient5Http2Enabled
public boolean isHttpClient5Http2Enabled() -
setHttpClient5Http2Enabled
-
getMetricsRepository
public io.tehuti.metrics.MetricsRepository getMetricsRepository() -
setMetricsRepository
-
getDeserializationExecutor
-
setDeserializationExecutor
Provide an arbitrary executor to execute client requests in, rather than letting the client use its own internally-generated executor. If null, or unset, the client will useExecutors.newFixedThreadPool(int)
with a thread limit equal to half the CPU cores. -
isVsonClient
Deprecated. -
setVsonClient
Deprecated. -
getBatchGetDeserializer
-
setBatchDeserializerType
-
setMultiGetEnvelopeIterableImpl
@Deprecated public ClientConfig<T> setMultiGetEnvelopeIterableImpl(AvroGenericDeserializer.IterableImpl multiGetEnvelopeIterableImpl) Deprecated. -
setOnDemandDeserializerNumberOfRecordsPerThread
@Deprecated public ClientConfig<T> setOnDemandDeserializerNumberOfRecordsPerThread(int onDemandDeserializerNumberOfRecordsPerThread) Deprecated. -
setAlwaysOnDeserializerNumberOfThreads
@Deprecated public ClientConfig<T> setAlwaysOnDeserializerNumberOfThreads(int alwaysOnDeserializerNumberOfThreads) Deprecated. -
setAlwaysOnDeserializerQueueCapacity
@Deprecated public ClientConfig<T> setAlwaysOnDeserializerQueueCapacity(int alwaysOnDeserializerQueueCapacity) Deprecated. -
isUseFastAvro
public boolean isUseFastAvro() -
setUseFastAvro
-
setRetryOnRouterError
-
isRetryOnRouterErrorEnabled
public boolean isRetryOnRouterErrorEnabled() -
setRetryOnAllErrors
-
isRetryOnAllErrorsEnabled
public boolean isRetryOnAllErrorsEnabled() -
setRetryCount
-
getRetryCount
public int getRetryCount() -
setRetryBackOffInMs
-
getRetryBackOffInMs
public long getRetryBackOffInMs() -
getRetryExecutor
-
setRetryExecutor
-
isUseBlackHoleDeserializer
public boolean isUseBlackHoleDeserializer() -
setUseBlackHoleDeserializer
-
isProjectionFieldValidationEnabled
public boolean isProjectionFieldValidationEnabled() -
setProjectionFieldValidationEnabled
-
isRemoteComputationOnly
public boolean isRemoteComputationOnly() -
setRemoteComputationOnly
-
getPreferredSchemaFilter
-
setPreferredSchemaFilter
public ClientConfig<T> setPreferredSchemaFilter(Predicate<org.apache.avro.Schema> preferredSchemaFilter) -
getSchemaRefreshPeriod
-
setSchemaRefreshPeriod
-
getTime
public io.tehuti.utils.Time getTime() -
setTime
-
hashCode
public int hashCode() -
equals
-