public boolean tryLock() { boolean locked; try { locked = ManagerUtil.getManager().tryLock(lockId, LockLevel.fromInt(lockLevel)); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } locked = false; } return locked; }
public boolean tryLock() { boolean locked; try { locked = ManagerUtil.getManager().tryLock(lockId, LockLevel.fromInt(lockLevel)); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } locked = false; } return locked; }
public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException { try { return ManagerUtil.getManager().tryLock(lockId, LockLevel.fromInt(lockLevel), unit.toMillis(timeout)); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } unit.sleep(timeout); return false; } }
public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException { try { return ManagerUtil.getManager().tryLock(lockId, LockLevel.fromInt(lockLevel), unit.toMillis(timeout)); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } unit.sleep(timeout); return false; } }
public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException { try { return ManagerUtil.getManager().tryLock(lockId, LockLevel.fromInt(lockLevel), unit.toMillis(timeout)); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } unit.sleep(timeout); return false; } }
public boolean tryLock() { boolean locked; try { locked = ManagerUtil.getManager().tryLock(lockId, LockLevel.fromInt(lockLevel)); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } locked = false; } return locked; }
public boolean tryLock(final LockType lockType, final long timeout, final TimeUnit unit) throws InterruptedException { try { return ManagerUtil.getManager().tryLock(lockId, LockLevel.fromInt(LockingUtils.translateLockType(lockType)), unit.toMillis(timeout)); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } unit.sleep(timeout); return false; } }
public boolean tryLock(final LockType lockType, final long timeout, final TimeUnit unit) throws InterruptedException { try { return ManagerUtil.getManager().tryLock(lockId, LockLevel.fromInt(LockingUtils.translateLockType(lockType)), unit.toMillis(timeout)); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } unit.sleep(timeout); return false; } }
public boolean tryLock(final LockType lockType, final long timeout, final TimeUnit unit) throws InterruptedException { try { return ManagerUtil.getManager().tryLock(lockId, LockLevel.fromInt(LockingUtils.translateLockType(lockType)), unit.toMillis(timeout)); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } unit.sleep(timeout); return false; } }
protected static boolean tryBeginLock(final Object obj, final LockLevel level, final long time, final TimeUnit unit) throws InterruptedException, AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(obj); return mgr.tryLock(lock, level, unit.toMillis(time)); }
protected static boolean tryBeginLock(final Object obj, final LockLevel level, final long time, final TimeUnit unit) throws InterruptedException, AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(obj); return mgr.tryLock(lock, level, unit.toMillis(time)); }
public boolean tryLock(final LockType lockType) { try { return ManagerUtil.getManager().tryLock(lockId, LockLevel.fromInt(LockingUtils.translateLockType(lockType))); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } return false; } }
public boolean tryLock(final LockType lockType) { try { return ManagerUtil.getManager().tryLock(lockId, LockLevel.fromInt(LockingUtils.translateLockType(lockType))); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } return false; } }
public boolean tryLock(final LockType lockType) { try { return ManagerUtil.getManager().tryLock(lockId, LockLevel.fromInt(LockingUtils.translateLockType(lockType))); } catch (Error e) { if (!"com.tc.exception.TCLockUpgradeNotSupportedError".equals(e.getClass().getName())) { throw e; } return false; } }
protected static boolean tryBeginLock(final Object obj, final LockLevel level) throws AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(obj); return mgr.tryLock(lock, level); }
protected static boolean tryBeginLock(final Object obj, final LockLevel level) throws AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(obj); return mgr.tryLock(lock, level); }
@Override public boolean tryBeginLock(final Object lockID, final LockLevel level, final long timeout, TimeUnit timeUnit) throws InterruptedException, AbortedOperationException { LockID lock = manager.generateLockIdentifier(lockID); boolean granted = manager.tryLock(lock, level, timeUnit.toMillis(timeout)); if (granted) { addContext(new LockInfo(lockID, level)); } return granted; }
@Override public boolean tryBeginLock(final Object lockID, final LockLevel level, final long timeout, TimeUnit timeUnit) throws InterruptedException, AbortedOperationException { LockID lock = manager.generateLockIdentifier(lockID); boolean granted = manager.tryLock(lock, level, timeUnit.toMillis(timeout)); if (granted) { addContext(new LockInfo(lockID, level)); } return granted; }
@Override public boolean tryBeginLock(final Object lockID, final LockLevel level) throws AbortedOperationException { LockID lock = manager.generateLockIdentifier(lockID); boolean granted = manager.tryLock(lock, level); if (granted) { addContext(new LockInfo(lockID, level)); } return granted; }
@Override public boolean tryBeginLock(final Object lockID, final LockLevel level) throws AbortedOperationException { LockID lock = manager.generateLockIdentifier(lockID); boolean granted = manager.tryLock(lock, level); if (granted) { addContext(new LockInfo(lockID, level)); } return granted; }