Skip to content

Commit

Permalink
jdbc-integraions.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxBartkov committed Feb 10, 2022
1 parent c40d65c commit f0be6a9
Showing 1 changed file with 3 additions and 6 deletions.
Expand Up @@ -20,7 +20,7 @@ CREATE TABLE IF NOT EXISTS buckets(id BIGINT PRIMARY KEY, state BLOB);

* Each proxy manager takes `SQLProxyConfiguration` to customize work with database

* In order to do that, you should use `SQLProxyConfigurationBuilder`, which includes the next parameters:
* To do that, you should use `SQLProxyConfigurationBuilder`, which includes the next parameters:

----
/**
Expand All @@ -46,7 +46,7 @@ CREATE TABLE IF NOT EXISTS buckets(id BIGINT PRIMARY KEY, state BLOB);

[[listener]]
===== Overriding table configuration
You can override the names of the columns to set your custom name of columns, in order to do that, you should use `BucketTableSettings` to set into `SQLProxyConfigurationBuilder` of your JDBC implementation.
You can override the names of the columns to set your custom name of columns, to do that, you should use `BucketTableSettings` to set into `SQLProxyConfigurationBuilder` of your JDBC implementation.

* `SQLProxyConfigurationBuilder` Takes `BucketTableSettings` - is the class to define a configuration of the table to use as a buckets store. By default, under the hood uses `BucketTableSettings.getDefault()`

Expand Down Expand Up @@ -134,7 +134,4 @@ To use Bucket4j extension for MySQL you need to add following dependency:
.addLimit(Bandwidth.simple(10, Duration.ofSeconds(1)))
.build();
BucketProxy bucket = proxyManager.builder().build(key, bucketConfiguration);
----



----

0 comments on commit f0be6a9

Please sign in to comment.