Lines Matching refs:tryTransfer
885 * tryTransfer(null) throws NullPointerException
890 q.tryTransfer(null);
896 * tryTransfer returns false and does not enqueue if there are no
901 assertFalse(q.tryTransfer(new Object()));
907 * If there is a consumer waiting in timed poll, tryTransfer
920 assertTrue(q.tryTransfer(hotPotato));
931 * If there is a consumer waiting in take, tryTransfer returns
944 assertTrue(q.tryTransfer(hotPotato));
953 * tryTransfer blocks interruptibly if no takers
965 q.tryTransfer(new Object(), LONG_DELAY_MS, MILLISECONDS);
972 q.tryTransfer(new Object(), LONG_DELAY_MS, MILLISECONDS);
987 * tryTransfer gives up after the timeout and returns false
995 assertFalse(q.tryTransfer(new Object(),
1006 * tryTransfer waits for any elements previously in to be removed
1016 assertTrue(q.tryTransfer(five, LONG_DELAY_MS, MILLISECONDS));
1031 * tryTransfer attempts to enqueue into the queue and fails
1039 assertFalse(q.tryTransfer(five, timeoutMillis(), MILLISECONDS));