org.infinispan.loaders.jdbc.configuration
Class JdbcMixedCacheStoreConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.AbstractLoadersConfigurationChildBuilder
org.infinispan.configuration.cache.AbstractLoaderConfigurationBuilder<T,S>
org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder<T,S>
org.infinispan.configuration.cache.AbstractLockSupportStoreConfigurationBuilder<T,S>
org.infinispan.loaders.jdbc.configuration.AbstractJdbcCacheStoreConfigurationBuilder<JdbcMixedCacheStoreConfiguration,JdbcMixedCacheStoreConfigurationBuilder>
org.infinispan.loaders.jdbc.configuration.JdbcMixedCacheStoreConfigurationBuilder
- All Implemented Interfaces:
- Builder<JdbcMixedCacheStoreConfiguration>, CacheLoaderConfigurationBuilder<JdbcMixedCacheStoreConfiguration,JdbcMixedCacheStoreConfigurationBuilder>, CacheStoreConfigurationBuilder<JdbcMixedCacheStoreConfiguration,JdbcMixedCacheStoreConfigurationBuilder>, ConfigurationChildBuilder, LoaderConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder>, LoadersConfigurationChildBuilder, LockSupportStoreConfigurationBuilder<JdbcMixedCacheStoreConfiguration,JdbcMixedCacheStoreConfigurationBuilder>, LockSupportStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder>, StoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder>, Self<JdbcMixedCacheStoreConfigurationBuilder>, JdbcCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder>, JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder>
public class JdbcMixedCacheStoreConfigurationBuilder
- extends AbstractJdbcCacheStoreConfigurationBuilder<JdbcMixedCacheStoreConfiguration,JdbcMixedCacheStoreConfigurationBuilder>
- implements JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder>
JdbcMixedCacheStoreConfigurationBuilder.
- Since:
- 5.2
- Author:
- Tristan Tarrant
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder |
build, clustering, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, indexing, invocationBatching, jmxStatistics, loaders, locking, sites, storeAsBinary, transaction, unsafe, versioning |
JdbcMixedCacheStoreConfigurationBuilder
public JdbcMixedCacheStoreConfigurationBuilder(LoadersConfigurationBuilder builder)
self
public JdbcMixedCacheStoreConfigurationBuilder self()
- Specified by:
self
in interface Self<JdbcMixedCacheStoreConfigurationBuilder>
batchSize
public JdbcMixedCacheStoreConfigurationBuilder batchSize(int batchSize)
- When doing repetitive DB inserts (e.g. on
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
.
fetchSize
public JdbcMixedCacheStoreConfigurationBuilder fetchSize(int fetchSize)
- For DB queries (e.g.
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
.
databaseType
public JdbcMixedCacheStoreConfigurationBuilder databaseType(DatabaseType databaseType)
- Specifies the type of the underlying database. If unspecified the database type will be
determined automatically
binaryTable
public JdbcMixedCacheStoreConfigurationBuilder.MixedTableManipulationConfigurationBuilder binaryTable()
- Allows configuration of table-specific parameters such as column names and types for the table
used to store entries with binary keys
- Specified by:
binaryTable
in interface JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder>
stringTable
public JdbcMixedCacheStoreConfigurationBuilder.MixedTableManipulationConfigurationBuilder stringTable()
- Allows configuration of table-specific parameters such as column names and types for the table
used to store entries with string keys
- Specified by:
stringTable
in interface JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder>
key2StringMapper
public JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder> key2StringMapper(String key2StringMapper)
- The class name of a
Key2StringMapper
to use for mapping keys to strings suitable for
storage in a database table. Defaults to DefaultTwoWayKey2StringMapper
- Specified by:
key2StringMapper
in interface JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder>
key2StringMapper
public JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder> key2StringMapper(Class<? extends Key2StringMapper> klass)
- The class of a
Key2StringMapper
to use for mapping keys to strings suitable for
storage in a database table. Defaults to DefaultTwoWayKey2StringMapper
- Specified by:
key2StringMapper
in interface JdbcMixedCacheStoreConfigurationChildBuilder<JdbcMixedCacheStoreConfigurationBuilder>
validate
public void validate()
- Description copied from interface:
Builder
- Validate the data in this builder before building the configuration bean
- Specified by:
validate
in interface Builder<JdbcMixedCacheStoreConfiguration>
- Overrides:
validate
in class AbstractJdbcCacheStoreConfigurationBuilder<JdbcMixedCacheStoreConfiguration,JdbcMixedCacheStoreConfigurationBuilder>
create
public JdbcMixedCacheStoreConfiguration create()
- Description copied from interface:
Builder
- Create the configuration bean
- Specified by:
create
in interface Builder<JdbcMixedCacheStoreConfiguration>
- Returns:
read
public JdbcMixedCacheStoreConfigurationBuilder read(JdbcMixedCacheStoreConfiguration template)
- Description copied from interface:
Builder
- Reads the configuration from an already created configuration bean into this builder.
Returns an appropriate builder to allow fluent configuration
- Specified by:
read
in interface Builder<JdbcMixedCacheStoreConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.
clustering
public ClusteringConfigurationBuilder clustering()
- Specified by:
clustering
in interface ConfigurationChildBuilder
customInterceptors
public CustomInterceptorsConfigurationBuilder customInterceptors()
- Specified by:
customInterceptors
in interface ConfigurationChildBuilder
dataContainer
public DataContainerConfigurationBuilder dataContainer()
- Specified by:
dataContainer
in interface ConfigurationChildBuilder
deadlockDetection
public DeadlockDetectionConfigurationBuilder deadlockDetection()
- Specified by:
deadlockDetection
in interface ConfigurationChildBuilder
eviction
public EvictionConfigurationBuilder eviction()
- Specified by:
eviction
in interface ConfigurationChildBuilder
expiration
public ExpirationConfigurationBuilder expiration()
- Specified by:
expiration
in interface ConfigurationChildBuilder
indexing
public IndexingConfigurationBuilder indexing()
- Specified by:
indexing
in interface ConfigurationChildBuilder
invocationBatching
public InvocationBatchingConfigurationBuilder invocationBatching()
- Specified by:
invocationBatching
in interface ConfigurationChildBuilder
jmxStatistics
public JMXStatisticsConfigurationBuilder jmxStatistics()
- Specified by:
jmxStatistics
in interface ConfigurationChildBuilder
loaders
public LoadersConfigurationBuilder loaders()
- Specified by:
loaders
in interface ConfigurationChildBuilder
locking
public LockingConfigurationBuilder locking()
- Specified by:
locking
in interface ConfigurationChildBuilder
storeAsBinary
public StoreAsBinaryConfigurationBuilder storeAsBinary()
- Specified by:
storeAsBinary
in interface ConfigurationChildBuilder
transaction
public TransactionConfigurationBuilder transaction()
- Specified by:
transaction
in interface ConfigurationChildBuilder
versioning
public VersioningConfigurationBuilder versioning()
- Specified by:
versioning
in interface ConfigurationChildBuilder
unsafe
public UnsafeConfigurationBuilder unsafe()
- Specified by:
unsafe
in interface ConfigurationChildBuilder
sites
public SitesConfigurationBuilder sites()
- Specified by:
sites
in interface ConfigurationChildBuilder
getBuilder
protected ConfigurationBuilder getBuilder()
build
public Configuration build()
- Specified by:
build
in interface ConfigurationChildBuilder
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.