Class LockingConfiguration

All Implemented Interfaces:
Matchable<LockingConfiguration>, Updatable<LockingConfiguration>

public class LockingConfiguration extends ConfigurationElement<LockingConfiguration>
Defines the local, in-VM locking and concurrency characteristics of the cache.
  • Field Details

  • Method Details

    • concurrencyLevel

      public int 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.
    • lockIsolationLevel

      public IsolationLevel lockIsolationLevel()
      Cache isolation level. Infinispan only supports READ_COMMITTED or REPEATABLE_READ isolation levels. See for a discussion on isolation levels.
    • isolationLevel

      @Deprecated(forRemoval=true, since="15.0") public IsolationLevel isolationLevel()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • lockAcquisitionTimeout

      public long lockAcquisitionTimeout()
      Maximum time to attempt a particular lock acquisition
    • lockAcquisitionTimeout

      public LockingConfiguration lockAcquisitionTimeout(long timeout)
    • useLockStriping

      public boolean 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.