Class LockingConfiguration

    • Field Detail


        public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Integer> CONCURRENCY_LEVEL

        public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<org.infinispan.util.concurrent.IsolationLevel> ISOLATION_LEVEL

        public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Long> LOCK_ACQUISITION_TIMEOUT

        public static final org.infinispan.commons.configuration.attributes.AttributeDefinition<Boolean> USE_LOCK_STRIPING
    • Method Detail

      • getElementDefinition

        public org.infinispan.commons.configuration.elements.ElementDefinition getElementDefinition()
        Specified by:
        getElementDefinition in interface BaseConfigurationInfo
        the ElementDefinition of the configuration.
      • 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.
      • isolationLevel

        public org.infinispan.util.concurrent.IsolationLevel isolationLevel()
        Cache isolation level. Infinispan only supports READ_COMMITTED or REPEATABLE_READ isolation levels. See for a discussion on isolation levels.
      • lockAcquisitionTimeout

        public long lockAcquisitionTimeout()
        Maximum time to attempt a particular lock acquisition
      • 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.
      • attributes

        public org.infinispan.commons.configuration.attributes.AttributeSet attributes()
        Specified by:
        attributes in interface BaseConfigurationInfo
        the AttributeSet declared by the configuration.
      • toString

        public String toString()
      • equals

        public boolean equals​(Object obj)
      • hashCode

        public int hashCode()