org.infinispan.util.concurrent.locks.impl.StripedLockContainer Maven / Gradle / Ivy
package org.infinispan.util.concurrent.locks.impl;
import static org.infinispan.commons.util.InfinispanCollections.forEach;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;
import org.infinispan.commons.equivalence.Equivalence;
import org.infinispan.factories.annotations.Inject;
import org.infinispan.util.StripedHashFunction;
import org.infinispan.util.TimeService;
import org.infinispan.util.concurrent.locks.DeadlockChecker;
import org.infinispan.util.concurrent.locks.ExtendedLockPromise;
/**
* A lock container used with lock stripping.
*
* @author Pedro Ruivo
* @since 8.0
*/
public class StripedLockContainer implements LockContainer {
private final InfinispanLock[] sharedLocks;
private final StripedHashFunction
© 2015 - 2025 Weber Informatics LLC | Privacy Policy