Module io.github.bucket4j.core
Class SQLProxyConfigurationBuilder<K>
java.lang.Object
io.github.bucket4j.distributed.jdbc.SQLProxyConfigurationBuilder<K>
Deprecated.
- Author:
- Maxim Bartkov
The class to build
SQLProxyConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionbuild(DataSource dataSource) Deprecated.The method takes aDataSourceas a required parameterstatic SQLProxyConfigurationBuilder<Long>builder()Deprecated.withClientSideConfig(ClientSideConfig clientSideConfig) Deprecated.<T> SQLProxyConfigurationBuilder<T>withPrimaryKeyMapper(PrimaryKeyMapper<T> primaryKeyMapper) Deprecated.withTableSettings(BucketTableSettings tableSettings) Deprecated.
-
Method Details
-
builder
Deprecated.- Returns:
- the new instance of
SQLProxyConfigurationBuilderconfigured withPrimaryKeyMapper.LONGprimary key mapper
-
withClientSideConfig
Deprecated.- Parameters:
clientSideConfig-ClientSideConfigclient-side configuration for proxy-manager. By default, under the hood usesClientSideConfig.getDefault()- Returns:
SQLProxyConfigurationBuilder
-
withTableSettings
Deprecated.- Parameters:
tableSettings-BucketTableSettingsdefine a configuration of the table to use as a Buckets store. By default, under the hood usesBucketTableSettings.getDefault()- Returns:
SQLProxyConfigurationBuilder
-
withPrimaryKeyMapper
public <T> SQLProxyConfigurationBuilder<T> withPrimaryKeyMapper(PrimaryKeyMapper<T> primaryKeyMapper) Deprecated.- Parameters:
primaryKeyMapper- Specifies the type of primary key. By default, under the hood usesPrimaryKeyMapper.LONG- Returns:
SQLProxyConfigurationBuilder
-
build
Deprecated.The method takes aDataSourceas a required parameter- Parameters:
dataSource- - a database configuration- Returns:
SQLProxyConfiguration
-
SQLProxyConfiguration.builder()