Module io.github.bucket4j.core
Class AbstractJdbcProxyManagerBuilder<K,P extends ProxyManager<K>,B extends AbstractJdbcProxyManagerBuilder<K,P,B>>
java.lang.Object
io.github.bucket4j.distributed.proxy.AbstractProxyManagerBuilder<K,P,B>
io.github.bucket4j.distributed.jdbc.AbstractJdbcProxyManagerBuilder<K,P,B>
- Type Parameters:
K- type of keyP- type of proxy manager that is being buildB- the type of builder extendingAbstractJdbcProxyManagerBuilder
public abstract class AbstractJdbcProxyManagerBuilder<K,P extends ProxyManager<K>,B extends AbstractJdbcProxyManagerBuilder<K,P,B>>
extends AbstractProxyManagerBuilder<K,P,B>
Base class for all JDBC proxy-manager builders.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractJdbcProxyManagerBuilder(DataSource dataSource, PrimaryKeyMapper<K> primaryKeyMapper) -
Method Summary
Modifier and TypeMethodDescriptionaddCustomColumn(CustomColumnProvider<K> column) Specifies provider of custom field valueexpiresAtColumn(String expiresAtColumnName) Specifies name of column that used to store expiration date, instead of name "expires_at" that is configured by default.Specifies name of primary key in buckets tablestateColumn(String stateColumnName) Specifies name column that used to store a state of bucketSpecifies name of table to use as a Buckets storeMethods inherited from class io.github.bucket4j.distributed.proxy.AbstractProxyManagerBuilder
backwardCompatibleWith, build, clientClock, defaultListener, defaultRecoveryStrategy, executionStrategy, expirationAfterWrite, getBackwardCompatibilityVersion, getClientSideClock, getClientSideConfig, getExecutionStrategy, getExpirationAfterWrite, getRequestTimeoutNanos, isExpireAfterWriteSupported, requestTimeout
-
Field Details
-
-
Constructor Details
-
AbstractJdbcProxyManagerBuilder
-
-
Method Details
-
table
Specifies name of table to use as a Buckets store- Parameters:
tableName- of table to use as a Buckets store- Returns:
- this builder instance
-
idColumn
Specifies name of primary key in buckets table- Parameters:
idColumnName- name of primary key in buckets table- Returns:
- this builder instance
-
stateColumn
Specifies name column that used to store a state of bucket- Parameters:
stateColumnName- name of column that used to store a state of bucket- Returns:
- this builder instance
-
expiresAtColumn
Specifies name of column that used to store expiration date, instead of name "expires_at" that is configured by default.- Parameters:
expiresAtColumnName- name of column that used to store expiration date- Returns:
- this builder instance
-
addCustomColumn
Specifies provider of custom field value- Parameters:
column- provider of custom field value- Returns:
- this builder instance
-
getDataSource
-
getPrimaryKeyMapper
-
getTableName
-
getIdColumnName
-
getStateColumnName
-
getExpiresAtColumnName
-
getCustomColumns
-