public abstract class TableManipulationConfigurationBuilder<B extends AbstractJdbcCacheStoreConfigurationBuilder<?,B>,S extends TableManipulationConfigurationBuilder<B,S>> extends AbstractJdbcCacheStoreConfigurationChildBuilder<B> implements Builder<TableManipulationConfiguration>, Self<S>
Modifier and Type | Method and Description |
---|---|
S |
batchSize(int batchSize)
When doing repetitive DB inserts (e.g.
|
Configuration |
build() |
ClusteringConfigurationBuilder |
clustering() |
TableManipulationConfiguration |
create()
Create the configuration bean
|
S |
createOnStart(boolean createOnStart)
Determines whether database tables should be created by the store on startup
|
CustomInterceptorsConfigurationBuilder |
customInterceptors() |
S |
databaseType(DatabaseType databaseType)
Specifies the type of the underlying database.
|
S |
dataColumnName(String dataColumnName)
The name of the database column used to store the entries
|
S |
dataColumnType(String dataColumnType)
The type of the database column used to store the entries
|
DataContainerConfigurationBuilder |
dataContainer() |
DeadlockDetectionConfigurationBuilder |
deadlockDetection() |
S |
dropOnExit(boolean dropOnExit)
Determines whether database tables should be dropped by the store on shutdown
|
EvictionConfigurationBuilder |
eviction() |
ExpirationConfigurationBuilder |
expiration() |
S |
fetchSize(int fetchSize)
For DB queries (e.g.
|
protected ConfigurationBuilder |
getBuilder() |
S |
idColumnName(String idColumnName)
The name of the database column used to store the keys
|
S |
idColumnType(String idColumnType)
The type of the database column used to store the keys
|
IndexingConfigurationBuilder |
indexing() |
InvocationBatchingConfigurationBuilder |
invocationBatching() |
JMXStatisticsConfigurationBuilder |
jmxStatistics() |
LoadersConfigurationBuilder |
loaders() |
LockingConfigurationBuilder |
locking() |
Builder<?> |
read(TableManipulationConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
SitesConfigurationBuilder |
sites() |
StoreAsBinaryConfigurationBuilder |
storeAsBinary() |
S |
tableNamePrefix(String tableNamePrefix)
Sets the prefix for the name of the table where the data will be stored.
|
S |
timestampColumnName(String timestampColumnName)
The name of the database column used to store the timestamps
|
S |
timestampColumnType(String timestampColumnType)
The type of the database column used to store the timestamps
|
TransactionConfigurationBuilder |
transaction() |
UnsafeConfigurationBuilder |
unsafe() |
void |
validate()
Validate the data in this builder before building the configuration bean
|
VersioningConfigurationBuilder |
versioning() |
connectionPool, dataSource, simpleConnection
lockAcquistionTimeout, lockAcquistionTimeout, lockConcurrencyLevel
async, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStore
addProperty, withProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
lockAcquistionTimeout, lockAcquistionTimeout, lockConcurrencyLevel
async, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStore
addProperty, withProperties
build, clustering, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, indexing, invocationBatching, jmxStatistics, loaders, locking, sites, storeAsBinary, transaction, unsafe, versioning
loaders
public S batchSize(int batchSize)
CacheStore.fromStream(java.io.ObjectInput)
this will be batched
according to this parameter. This is an optional parameter, and if it is not specified it will
be defaulted to #DEFAULT_BATCH_SIZE
.public S fetchSize(int fetchSize)
CacheStore.toStream(java.io.ObjectOutput)
) the fetch size will be set on ResultSet.setFetchSize(int)
. This is optional
parameter, if not specified will be defaulted to #DEFAULT_FETCH_SIZE
.public S tableNamePrefix(String tableNamePrefix)
public S databaseType(DatabaseType databaseType)
public S createOnStart(boolean createOnStart)
public S dropOnExit(boolean dropOnExit)
public S idColumnName(String idColumnName)
public S idColumnType(String idColumnType)
public S dataColumnName(String dataColumnName)
public S dataColumnType(String dataColumnType)
public S timestampColumnName(String timestampColumnName)
public S timestampColumnType(String timestampColumnType)
public void validate()
Builder
validate
in interface Builder<TableManipulationConfiguration>
public TableManipulationConfiguration create()
Builder
create
in interface Builder<TableManipulationConfiguration>
public Builder<?> read(TableManipulationConfiguration template)
Builder
read
in interface Builder<TableManipulationConfiguration>
template
- the configuration from which to "clone" this config if needed.public ClusteringConfigurationBuilder clustering()
clustering
in interface ConfigurationChildBuilder
public CustomInterceptorsConfigurationBuilder customInterceptors()
customInterceptors
in interface ConfigurationChildBuilder
public DataContainerConfigurationBuilder dataContainer()
dataContainer
in interface ConfigurationChildBuilder
public DeadlockDetectionConfigurationBuilder deadlockDetection()
deadlockDetection
in interface ConfigurationChildBuilder
public EvictionConfigurationBuilder eviction()
eviction
in interface ConfigurationChildBuilder
public ExpirationConfigurationBuilder expiration()
expiration
in interface ConfigurationChildBuilder
public IndexingConfigurationBuilder indexing()
indexing
in interface ConfigurationChildBuilder
public InvocationBatchingConfigurationBuilder invocationBatching()
invocationBatching
in interface ConfigurationChildBuilder
public JMXStatisticsConfigurationBuilder jmxStatistics()
jmxStatistics
in interface ConfigurationChildBuilder
public LoadersConfigurationBuilder loaders()
loaders
in interface ConfigurationChildBuilder
public LockingConfigurationBuilder locking()
locking
in interface ConfigurationChildBuilder
public StoreAsBinaryConfigurationBuilder storeAsBinary()
storeAsBinary
in interface ConfigurationChildBuilder
public TransactionConfigurationBuilder transaction()
transaction
in interface ConfigurationChildBuilder
public VersioningConfigurationBuilder versioning()
versioning
in interface ConfigurationChildBuilder
public UnsafeConfigurationBuilder unsafe()
unsafe
in interface ConfigurationChildBuilder
public SitesConfigurationBuilder sites()
sites
in interface ConfigurationChildBuilder
protected ConfigurationBuilder getBuilder()
public Configuration build()
build
in interface ConfigurationChildBuilder
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.