@Override public boolean isHeldByCurrentThread(Object lockID, LockLevel level) throws AbortedOperationException { LockID lock = manager.generateLockIdentifier(lockID); return manager.isLockedByCurrentThread(lock, level); }
@Override public boolean isHeldByCurrentThread(Object lockID, LockLevel level) throws AbortedOperationException { LockID lock = manager.generateLockIdentifier(lockID); return manager.isLockedByCurrentThread(lock, level); }
/** * Check whether this lock is held by the current thread * * @param lockId The lock ID * @param level The lock level * @return True if held by current thread * @throws AbortedOperationException */ protected static boolean isLockHeldByCurrentThread(final long lockId, final LockLevel level) throws AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(lockId); return mgr.isLockedByCurrentThread(lock, level); }
/** * Check whether this lock is held by the current thread * * @param lockId The lock ID * @param level The lock level * @return True if held by current thread * @throws AbortedOperationException */ protected static boolean isLockHeldByCurrentThread(final String lockId, final LockLevel level) throws AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(lockId); return mgr.isLockedByCurrentThread(lock, level); }
/** * Check whether this lock is held by the current thread * * @param lockId The lock ID * @param level The lock level * @return True if held by current thread * @throws AbortedOperationException */ protected static boolean isLockHeldByCurrentThread(final String lockId, final LockLevel level) throws AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(lockId); return mgr.isLockedByCurrentThread(lock, level); }
public boolean isHeldByCurrentThread() { return ManagerUtil.getManager().isLockedByCurrentThread(lockId, LockLevel.fromInt(lockLevel)); }
/** * Check whether this lock is held by the current thread * * @param lockId The lock ID * @param level The lock level * @return True if held by current thread * @throws AbortedOperationException */ protected static boolean isLockHeldByCurrentThread(final long lockId, final LockLevel level) throws AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(lockId); return mgr.isLockedByCurrentThread(lock, level); }
public boolean isHeldByCurrentThread() { return ManagerUtil.getManager().isLockedByCurrentThread(lockId, LockLevel.fromInt(lockLevel)); }
public boolean isHeldByCurrentThread() { return ManagerUtil.getManager().isLockedByCurrentThread(lockId, LockLevel.fromInt(lockLevel)); }
/** * Check whether this lock is held by the current thread * * @param obj The lock * @param level The lock level * @return True if held by current thread * @throws AbortedOperationException * @throws NullPointerException If obj is null */ protected static boolean isHeldByCurrentThread(final Object obj, final LockLevel level) throws AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(obj); return mgr.isLockedByCurrentThread(lock, level); }
/** * Check whether this lock is held by the current thread * * @param obj The lock * @param level The lock level * @return True if held by current thread * @throws AbortedOperationException * @throws NullPointerException If obj is null */ protected static boolean isHeldByCurrentThread(final Object obj, final LockLevel level) throws AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(obj); return mgr.isLockedByCurrentThread(lock, level); }
public boolean isHeldByCurrentThread(final LockType lockType) { return ManagerUtil.getManager().isLockedByCurrentThread(lockId, LockLevel.fromInt(LockingUtils.translateLockType(lockType))); }
public boolean isHeldByCurrentThread(final LockType lockType) { return ManagerUtil.getManager().isLockedByCurrentThread(lockId, LockLevel.fromInt(LockingUtils.translateLockType(lockType))); }
public boolean isHeldByCurrentThread(final LockType lockType) { return ManagerUtil.getManager().isLockedByCurrentThread(lockId, LockLevel.fromInt(LockingUtils.translateLockType(lockType))); }