Examples of ReentrantStripedLockContainer


Examples of org.infinispan.util.concurrent.locks.containers.ReentrantStripedLockContainer

public class LockContainerHashingTest extends AbstractInfinispanTest {
   private AbstractStripedLockContainer stripedLock;

   @BeforeMethod(alwaysRun = true)
   public void setUp() {
      stripedLock = new ReentrantStripedLockContainer(500);
   }
View Full Code Here

Examples of org.infinispan.util.concurrent.locks.containers.ReentrantStripedLockContainer

         } else if (componentType.equals(EvictionManager.class)) {
            return (T) new EvictionManagerImpl();
         } else if (componentType.equals(LockContainer.class)) {
            boolean  notTransactional = !isTransactional;
            LockContainer<?> lockContainer = configuration.locking().useLockStriping() ?
                  notTransactional ? new ReentrantStripedLockContainer(configuration.locking().concurrencyLevel())
                        : new OwnableReentrantStripedLockContainer(configuration.locking().concurrencyLevel()) :
                  notTransactional ? new ReentrantPerEntryLockContainer(configuration.locking().concurrencyLevel())
                        : new OwnableReentrantPerEntryLockContainer(configuration.locking().concurrencyLevel());
            return (T) lockContainer;
         } else if (componentType.equals(L1Manager.class)) {
View Full Code Here

Examples of org.infinispan.util.concurrent.locks.containers.ReentrantStripedLockContainer

   }

   @Start
   public void startLockManager() {
      lockContainer = configuration.isUseLockStriping() ?
      transactionManager == null ? new ReentrantStripedLockContainer(configuration.getConcurrencyLevel()) : new OwnableReentrantStripedLockContainer(configuration.getConcurrencyLevel(), invocationContextContainer) :
      transactionManager == null ? new ReentrantPerEntryLockContainer(configuration.getConcurrencyLevel()) : new OwnableReentrantPerEntryLockContainer(configuration.getConcurrencyLevel(), invocationContextContainer);
   }
View Full Code Here

Examples of org.infinispan.util.concurrent.locks.containers.ReentrantStripedLockContainer

   }

   @Start
   public void startLockManager() {
      lockContainer = configuration.isUseLockStriping() ?
            transactionManager == null ? new ReentrantStripedLockContainer(configuration.getConcurrencyLevel()) : new OwnableReentrantStripedLockContainer(configuration.getConcurrencyLevel(), invocationContextContainer) :
            transactionManager == null ? new ReentrantPerEntryLockContainer(configuration.getConcurrencyLevel()) : new OwnableReentrantPerEntryLockContainer(configuration.getConcurrencyLevel(), invocationContextContainer);
   }
View Full Code Here

Examples of org.infinispan.util.concurrent.locks.containers.ReentrantStripedLockContainer

   }

   @Start
   public void startLockManager() {
      lockContainer = configuration.isUseLockStriping() ?
      transactionManager == null ? new ReentrantStripedLockContainer(configuration.getConcurrencyLevel()) : new OwnableReentrantStripedLockContainer(configuration.getConcurrencyLevel(), invocationContextContainer) :
      transactionManager == null ? new ReentrantPerEntryLockContainer(configuration.getConcurrencyLevel()) : new OwnableReentrantPerEntryLockContainer(configuration.getConcurrencyLevel(), invocationContextContainer);
   }
View Full Code Here

Examples of org.infinispan.util.concurrent.locks.containers.ReentrantStripedLockContainer

         } else if (componentType.equals(EvictionManager.class)) {
            return (T) new EvictionManagerImpl();
         } else if (componentType.equals(LockContainer.class)) {
            boolean  notTransactional = !isTransactional;
            LockContainer<?> lockContainer = configuration.locking().useLockStriping() ?
                  notTransactional ? new ReentrantStripedLockContainer(configuration.locking().concurrencyLevel())
                        : new OwnableReentrantStripedLockContainer(configuration.locking().concurrencyLevel()) :
                  notTransactional ? new ReentrantPerEntryLockContainer(configuration.locking().concurrencyLevel())
                        : new OwnableReentrantPerEntryLockContainer(configuration.locking().concurrencyLevel());
            return (T) lockContainer;
         } else if (componentType.equals(L1Manager.class)) {
View Full Code Here

Examples of org.infinispan.util.concurrent.locks.containers.ReentrantStripedLockContainer

   @SuppressWarnings("unchecked")
   @Override
   public <T> T construct(Class<T> componentType) {
      boolean notTransactional = !configuration.transaction().transactionMode().isTransactional();
      LockContainer<?> lockContainer = configuration.locking().useLockStriping() ?
            notTransactional ? new ReentrantStripedLockContainer(configuration.locking().concurrencyLevel(),
                                                                 configuration.dataContainer().keyEquivalence())
                  : new OwnableReentrantStripedLockContainer(configuration.locking().concurrencyLevel(),
                                                             configuration.dataContainer().keyEquivalence()) :
            notTransactional ? new ReentrantPerEntryLockContainer(configuration.locking().concurrencyLevel(),
                                                                  configuration.dataContainer().keyEquivalence())
View Full Code Here

Examples of org.infinispan.util.concurrent.locks.containers.ReentrantStripedLockContainer

   }

   @Start
   public void startLockManager() {
      lockContainer = configuration.isUseLockStriping() ?
      transactionManager == null ? new ReentrantStripedLockContainer(configuration.getConcurrencyLevel()) : new OwnableReentrantStripedLockContainer(configuration.getConcurrencyLevel(), invocationContextContainer) :
      transactionManager == null ? new ReentrantPerEntryLockContainer(configuration.getConcurrencyLevel()) : new OwnableReentrantPerEntryLockContainer(configuration.getConcurrencyLevel(), invocationContextContainer);
   }
View Full Code Here

Examples of org.infinispan.util.concurrent.locks.containers.ReentrantStripedLockContainer

         } else if (componentType.equals(EvictionManager.class)) {
            return (T) new EvictionManagerImpl();
         } else if (componentType.equals(LockContainer.class)) {
            boolean  notTransactional = !isTransactional;
            LockContainer<?> lockContainer = configuration.locking().useLockStriping() ?
                  notTransactional ? new ReentrantStripedLockContainer(configuration.locking().concurrencyLevel())
                        : new OwnableReentrantStripedLockContainer(configuration.locking().concurrencyLevel()) :
                  notTransactional ? new ReentrantPerEntryLockContainer(configuration.locking().concurrencyLevel())
                        : new OwnableReentrantPerEntryLockContainer(configuration.locking().concurrencyLevel());
            return (T) lockContainer;
         } else if (componentType.equals(L1Manager.class)) {
View Full Code Here

Examples of org.infinispan.util.concurrent.locks.containers.ReentrantStripedLockContainer

   }

   @Start
   public void startLockManager() {
      lockContainer = configuration.isUseLockStriping() ?
            transactionManager == null ? new ReentrantStripedLockContainer(configuration.getConcurrencyLevel()) : new OwnableReentrantStripedLockContainer(configuration.getConcurrencyLevel(), invocationContextContainer) :
            transactionManager == null ? new ReentrantPerEntryLockContainer(configuration.getConcurrencyLevel()) : new OwnableReentrantPerEntryLockContainer(configuration.getConcurrencyLevel(), invocationContextContainer);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.