org.infinispan.util.concurrent.locks.impl.PerKeyLockContainer Maven / Gradle / Ivy
package org.infinispan.util.concurrent.locks.impl;
import org.infinispan.commons.equivalence.AnyEquivalence;
import org.infinispan.commons.equivalence.Equivalence;
import org.infinispan.commons.util.ByRef;
import org.infinispan.commons.util.concurrent.jdk8backported.EquivalentConcurrentHashMapV8;
import org.infinispan.factories.annotations.Inject;
import org.infinispan.util.TimeService;
import org.infinispan.util.concurrent.locks.DeadlockChecker;
import org.infinispan.util.concurrent.locks.ExtendedLockPromise;
import java.util.concurrent.TimeUnit;
/**
* A lock container that creates and maintains a new lock per entry.
*
* @author Pedro Ruivo
* @since 8.0
*/
public class PerKeyLockContainer implements LockContainer {
private static final int INITIAL_CAPACITY = 32;
private final EquivalentConcurrentHashMapV8
© 2015 - 2025 Weber Informatics LLC | Privacy Policy