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
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
concurrencyLevel
(int i) Concurrency level for lock containers.create()
Create the configuration beanencoding()
protected ConfigurationBuilder
indexing()
Deprecated, for removal: This API element is subject to removal in a future version.with no replacementisolationLevel
(IsolationLevel isolationLevel) Cache isolation level.isolationLevel
(IsolationLevel isolationLevel) Deprecated, for removal: This API element is subject to removal in a future version.useisolationLevel(IsolationLevel)
insteadlockAcquisitionTimeout
(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()
boolean
simpleCache
(boolean simpleCache) sites()
template
(boolean template) toString()
tracing()
unsafe()
useLockStriping
(boolean b) If true, a pool of shared locks is maintained for all entries that need to be locked.void
validate()
Validate the data in this builder before building the configuration beanvoid
validate
(GlobalConfiguration globalConfig)
-
Field Details
-
builder
-
-
Constructor Details
-
LockingConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributes
in 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
@Deprecated(forRemoval=true, since="15.0") public LockingConfigurationBuilder isolationLevel(IsolationLevel isolationLevel) Deprecated, for removal: This API element is subject to removal in a future version.useisolationLevel(IsolationLevel)
instead -
isolationLevel
Deprecated, for removal: This API element is subject to removal in a future version.with no replacement -
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:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<LockingConfiguration>
-
validate
- Specified by:
validate
in interfaceConfigurationChildBuilder
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<LockingConfiguration>
- Returns:
-
read
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 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
-
aliases
- Specified by:
aliases
in interfaceConfigurationChildBuilder
-
template
- Specified by:
template
in interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clustering
in interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encoding
in interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expiration
in interfaceConfigurationChildBuilder
-
query
- Specified by:
query
in interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexing
in interfaceConfigurationChildBuilder
-
tracing
- Specified by:
tracing
in interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatching
in interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statistics
in interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistence
in interfaceConfigurationChildBuilder
-
locking
- Specified by:
locking
in interfaceConfigurationChildBuilder
-
security
- Specified by:
security
in interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transaction
in interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafe
in interfaceConfigurationChildBuilder
-
sites
- Specified by:
sites
in interfaceConfigurationChildBuilder
-
memory
- Specified by:
memory
in interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
build
in interfaceConfigurationChildBuilder
-