Module io.github.bucket4j.core
Class BucketTableSettings
- java.lang.Object
-
- io.github.bucket4j.distributed.jdbc.BucketTableSettings
-
public class BucketTableSettings extends Object
- Author:
- Maxim Bartkov The class to define a configuration of the table to use as a Buckets store
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BucketTableSettingscustomSettings(String tableName, String idName, String stateName)The method will define a custom configuration of the table for the work with the PostgreSQL extensionstatic BucketTableSettingsgetDefault()The method will define the default configuration of the table for the work with the PostgreSQL extensionStringgetIdName()StringgetStateName()StringgetTableName()
-
-
-
Method Detail
-
customSettings
public static BucketTableSettings customSettings(String tableName, String idName, String stateName)
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
public static 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
public String getIdName()
-
getStateName
public String getStateName()
-
getTableName
public String getTableName()
-
-