public static class JDBCStateRepository.Builder extends Object
JDBCStateRepository.| Constructor and Description |
|---|
Builder(DataSource dataSource)
Creates a new builder for creating a
JDBCStateRepository. |
| Modifier and Type | Method and Description |
|---|---|
JDBCStateRepository |
build()
Creates a
JDBCStateRepository from the current configuration |
JDBCStateRepository.Builder |
createTable(boolean createTable)
If set to
true, the table will be automatically created if it is missing. |
JDBCStateRepository.Builder |
noCommit(boolean noCommit)
Can be used to suppress to commit after modifying data in the repository.
|
JDBCStateRepository.Builder |
serializer(MapSerializer serializer)
The
MapSerializer for storing parameters. |
JDBCStateRepository.Builder |
tableName(String tableName)
Sets the table name to use for the Togglz feature state table.
|
public Builder(DataSource dataSource)
JDBCStateRepository.dataSource - the DataSource Togglz should use to obtain JDBC connectionspublic JDBCStateRepository.Builder tableName(String tableName)
TOGGLZ.tableName - The database table namepublic JDBCStateRepository.Builder serializer(MapSerializer serializer)
MapSerializer for storing parameters. By default the repository will use
DefaultMapSerializer.multiline().serializer - The serializer to usepublic JDBCStateRepository.Builder noCommit(boolean noCommit)
false.noCommit - true to suppress commitspublic JDBCStateRepository.Builder createTable(boolean createTable)
true, the table will be automatically created if it is missing. The default is
true.createTable - true if the table should be created automaticallypublic JDBCStateRepository build()
JDBCStateRepository from the current configurationCopyright © 2018. All Rights Reserved.