Module io.github.bucket4j.core
Class BucketTableSettings
java.lang.Object
io.github.bucket4j.distributed.jdbc.BucketTableSettings
- Author:
- Maxim Bartkov The class to define a configuration of the table to use as a Buckets store
-
Method Summary
Modifier and TypeMethodDescriptionstatic BucketTableSettingscustomSettings(String tableName, String idName, String stateName) The method will define a custom configuration of the table for the work with the PostgreSQL extensionstatic BucketTableSettingsThe method will define the default configuration of the table for the work with the PostgreSQL extension
-
Method Details
-
customSettings
The method will define a custom configuration of the table for the work with the PostgreSQL extension- Parameters:
tableName- - name of table to use as a Buckets storeidName- - name of id (PRIMARY KEY - BIGINT)stateName- - name of state (BYTEA)- Returns:
BucketTableSettings
-
getDefault
The method will define the default configuration of the table for the work with the PostgreSQL extension- Returns:
BucketTableSettingswith the default setting, which includes "bucket" as the table name, "id" as the id column, "state" as the state column
-
getIdName
-
getStateName
-
getTableName
-