public void lockInterruptibly() throws InterruptedException { try { ManagerUtil.getManager().lockInterruptibly(lockId, LockLevel.fromInt(lockLevel)); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } Thread.currentThread().join(); } }
public void lockInterruptibly() throws InterruptedException { try { ManagerUtil.getManager().lockInterruptibly(lockId, LockLevel.fromInt(lockLevel)); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } Thread.currentThread().join(); } }
public void lockInterruptibly() throws InterruptedException { try { ManagerUtil.getManager().lockInterruptibly(lockId, LockLevel.fromInt(lockLevel)); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } Thread.currentThread().join(); } }
public void lockInterruptibly(final LockType lockType) throws InterruptedException { try { ManagerUtil.getManager().lockInterruptibly(lockId, LockLevel.fromInt(LockingUtils.translateLockType(lockType))); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } Thread.currentThread().join(); } }
public void lockInterruptibly(final LockType lockType) throws InterruptedException { try { ManagerUtil.getManager().lockInterruptibly(lockId, LockLevel.fromInt(LockingUtils.translateLockType(lockType))); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } Thread.currentThread().join(); } }
public void lockInterruptibly(final LockType lockType) throws InterruptedException { try { ManagerUtil.getManager().lockInterruptibly(lockId, LockLevel.fromInt(LockingUtils.translateLockType(lockType))); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } Thread.currentThread().join(); } }
/** * Acquire lock (interruptibly). * * @param obj The object monitor * @param level The lock level * @throws NullPointerException If obj is null * @throws InterruptedException If interrupted while entering or waiting * @throws AbortedOperationException */ protected static void beginLockInterruptibly(Object obj, LockLevel level) throws InterruptedException, AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(obj); mgr.lockInterruptibly(lock, level); }
/** * Acquire lock (interruptibly). * * @param obj The object monitor * @param level The lock level * @throws NullPointerException If obj is null * @throws InterruptedException If interrupted while entering or waiting * @throws AbortedOperationException */ protected static void beginLockInterruptibly(Object obj, LockLevel level) throws InterruptedException, AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(obj); mgr.lockInterruptibly(lock, level); }
@Override public void beginLockInterruptibly(Object lockID, LockLevel level) throws InterruptedException, AbortedOperationException { LockID lock = manager.generateLockIdentifier(lockID); manager.lockInterruptibly(lock, level); addContext(new LockInfo(lockID, level)); }
@Override public void beginLockInterruptibly(Object lockID, LockLevel level) throws InterruptedException, AbortedOperationException { LockID lock = manager.generateLockIdentifier(lockID); manager.lockInterruptibly(lock, level); addContext(new LockInfo(lockID, level)); }