Examples of LockManagerImpl


Examples of org.infinispan.lock.LockManagerImpl

* @since 4.0
*/
@DefaultFactoryFor(classes = LockManager.class)
public class LockManagerFactory extends AbstractComponentFactory implements AutoInstantiableFactory {
   public <T> T construct(Class<T> componentType) {
      return (T) new LockManagerImpl();
   }
View Full Code Here

Examples of org.infinispan.util.concurrent.locks.LockManagerImpl

   @Override
   public <T> T construct(Class<T> componentType) {
      if (configuration.isEnableDeadlockDetection()) {
         return (T) new DeadlockDetectingLockManager();
      } else {
         return (T) new LockManagerImpl();
      }
   }
View Full Code Here

Examples of railo.runtime.lock.LockManagerImpl

        try {
        ((PageContextImpl)pageContext).setActiveLock(new ActiveLock(type,name,timeoutInMillis)); // this has to be first, otherwise LockTimeoutException has nothing to release
        data = manager.lock(type,name,timeoutInMillis,pageContext.getId());
    }
    catch (LockTimeoutException e) {
      LockManagerImpl mi = (LockManagerImpl)manager;
        Boolean hasReadLock = mi.isReadLocked(name);
        Boolean hasWriteLock = mi.isWriteLocked(name);
        String msg = LockTimeoutExceptionImpl.createMessage(type, name, lockType, timeoutInMillis, hasReadLock, hasWriteLock);
       
        _release(pageContext,System.nanoTime()-start);
        name=null;
       
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.