Searched defs:maxElements (Results 1 - 9 of 9) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
H A DBlockingQueue.java365 * @param maxElements the maximum number of elements to transfer
376 int drainTo(Collection<? super E> c, int maxElements); argument
H A DDelayQueue.java367 public int drainTo(Collection<? super E> c, int maxElements) { argument
372 if (maxElements <= 0)
378 for (E e; n < maxElements && (e = peekExpired()) != null;) {
H A DLinkedBlockingQueue.java703 public int drainTo(Collection<? super E> c, int maxElements) { argument
708 if (maxElements <= 0)
714 int n = Math.min(maxElements, count.get());
H A DPriorityBlockingQueue.java730 public int drainTo(Collection<? super E> c, int maxElements) { argument
735 if (maxElements <= 0)
740 int n = Math.min(size, maxElements);
H A DArrayBlockingQueue.java665 public int drainTo(Collection<? super E> c, int maxElements) { argument
669 if (maxElements <= 0)
675 int n = Math.min(maxElements, count);
H A DLinkedBlockingDeque.java742 public int drainTo(Collection<? super E> c, int maxElements) { argument
747 if (maxElements <= 0)
752 int n = Math.min(maxElements, count);
H A DLinkedTransferQueue.java1387 public int drainTo(Collection<? super E> c, int maxElements) { argument
1393 for (E e; n < maxElements && (e = poll()) != null;) {
H A DScheduledThreadPoolExecutor.java1238 public int drainTo(Collection<? super Runnable> c, int maxElements) { argument
1243 if (maxElements <= 0)
1250 while (n < maxElements && (first = peekExpired()) != null) {
H A DSynchronousQueue.java1133 public int drainTo(Collection<? super E> c, int maxElements) { argument
1139 for (E e; n < maxElements && (e = poll()) != null;) {

Completed in 1848 milliseconds