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 Details

    • 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 store
      idName - - 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:
      BucketTableSettings with 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()