/** * Perform untimed wait on obj * * @param obj Instance * @throws AbortedOperationException */ protected static void objectWait(final Object obj) throws InterruptedException, AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(obj); mgr.wait(lock, obj); }
/** * Perform untimed wait on obj * * @param obj Instance * @throws AbortedOperationException */ protected static void objectWait(final Object obj) throws InterruptedException, AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(obj); mgr.wait(lock, obj); }
/** * Perform timed wait on obj * * @param obj Instance * @param millis Wait time * @throws AbortedOperationException */ protected static void objectWait(final Object obj, final long millis) throws InterruptedException, AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(obj); mgr.wait(lock, obj, millis); }
/** * Perform timed wait on obj * * @param obj Instance * @param millis Wait time * @throws AbortedOperationException */ protected static void objectWait(final Object obj, final long millis) throws InterruptedException, AbortedOperationException { Manager mgr = getManager(); LockID lock = mgr.generateLockIdentifier(obj); mgr.wait(lock, obj, millis); }