Class LockingConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.LockingConfigurationBuilder
- All Implemented Interfaces:
Builder<LockingConfiguration>,ConfigurationChildBuilder
Defines the local, in-VM locking and concurrency characteristics of the cache.
- Author:
- pmuir
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbuild()concurrencyLevel(int i) Concurrency level for lock containers.create()Create the configuration beanDeprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsencoding()protected ConfigurationBuilderindexing()isolationLevel(IsolationLevel isolationLevel) Cache isolation level.lockAcquisitionTimeout(long l) Maximum time to attempt a particular lock acquisitionlockAcquisitionTimeout(long l, TimeUnit unit) Maximum time to attempt a particular lock acquisitionlocking()memory()query()read(LockingConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.security()booleansimpleCache(boolean simpleCache) sites()template(boolean template) toString()unsafe()useLockStriping(boolean b) If true, a pool of shared locks is maintained for all entries that need to be locked.voidvalidate()Validate the data in this builder before building the configuration beanvoidvalidate(GlobalConfiguration globalConfig) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
jmxStatistics
-
Field Details
-
builder
-
-
Constructor Details
-
LockingConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributesin interfaceBuilder<LockingConfiguration>
-
concurrencyLevel
Concurrency level for lock containers. Adjust this value according to the number of concurrent threads interacting with Infinispan. Similar to the concurrencyLevel tuning parameter seen in the JDK's ConcurrentHashMap. -
isolationLevel
Cache isolation level. Infinispan only supports READ_COMMITTED or REPEATABLE_READ isolation levels. See http://en.wikipedia.org/wiki/Isolation_level for a discussion on isolation levels. -
isolationLevel
-
lockAcquisitionTimeout
Maximum time to attempt a particular lock acquisition -
lockAcquisitionTimeout
Maximum time to attempt a particular lock acquisition -
useLockStriping
If true, a pool of shared locks is maintained for all entries that need to be locked. Otherwise, a lock is created per entry in the cache. Lock striping helps control memory footprint but may reduce concurrency in the system. -
validate
public void validate()Description copied from interface:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<LockingConfiguration>
-
validate
- Specified by:
validatein interfaceConfigurationChildBuilder
-
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<LockingConfiguration>- Returns:
-
read
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<LockingConfiguration>- Parameters:
template- the configuration from which to "clone" this config if needed.combine- the way attributes and children of this instance and the template should be combined.
-
toString
-
template
- Specified by:
templatein interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clusteringin interfaceConfigurationChildBuilder
-
customInterceptors
Deprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors- Specified by:
customInterceptorsin interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
query
- Specified by:
queryin interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexingin interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatchingin interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statisticsin interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistencein interfaceConfigurationChildBuilder
-
locking
- Specified by:
lockingin interfaceConfigurationChildBuilder
-
security
- Specified by:
securityin interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transactionin interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafein interfaceConfigurationChildBuilder
-
sites
- Specified by:
sitesin interfaceConfigurationChildBuilder
-
memory
- Specified by:
memoryin interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
buildin interfaceConfigurationChildBuilder
-