Searched defs:maxElements (Results 1 - 9 of 9) sorted by relevance
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | BlockingQueue.java | 365 * @param maxElements the maximum number of elements to transfer 376 int drainTo(Collection<? super E> c, int maxElements); argument
|
H A D | DelayQueue.java | 367 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 D | LinkedBlockingQueue.java | 703 public int drainTo(Collection<? super E> c, int maxElements) { argument 708 if (maxElements <= 0) 714 int n = Math.min(maxElements, count.get());
|
H A D | PriorityBlockingQueue.java | 730 public int drainTo(Collection<? super E> c, int maxElements) { argument 735 if (maxElements <= 0) 740 int n = Math.min(size, maxElements);
|
H A D | ArrayBlockingQueue.java | 665 public int drainTo(Collection<? super E> c, int maxElements) { argument 669 if (maxElements <= 0) 675 int n = Math.min(maxElements, count);
|
H A D | LinkedBlockingDeque.java | 742 public int drainTo(Collection<? super E> c, int maxElements) { argument 747 if (maxElements <= 0) 752 int n = Math.min(maxElements, count);
|
H A D | LinkedTransferQueue.java | 1387 public int drainTo(Collection<? super E> c, int maxElements) { argument 1393 for (E e; n < maxElements && (e = poll()) != null;) {
|
H A D | ScheduledThreadPoolExecutor.java | 1238 public int drainTo(Collection<? super Runnable> c, int maxElements) { argument 1243 if (maxElements <= 0) 1250 while (n < maxElements && (first = peekExpired()) != null) {
|
H A D | SynchronousQueue.java | 1133 public int drainTo(Collection<? super E> c, int maxElements) { argument 1139 for (E e; n < maxElements && (e = poll()) != null;) {
|
Completed in 1848 milliseconds