public class AsyncCompletions<T> extends Object implements Iterator<T>, AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
AsyncCompletions.Cancel |
| Modifier | Constructor and Description |
|---|---|
protected |
AsyncCompletions(Iterator<? extends CompletionStage<? extends T>> pendingValues,
int chunkSize,
AsyncCompletions.Cancel cancelStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
static <T> Iterator<T> |
iterate(Iterable<? extends CompletionStage<? extends T>> pendingPromises,
int chunkSize) |
static <T> Iterator<T> |
iterate(Stream<? extends CompletionStage<? extends T>> pendingPromises,
int chunkSize) |
T |
next() |
void |
remove() |
static <T> Stream<T> |
stream(Iterable<? extends CompletionStage<? extends T>> pendingPromises,
int chunkSize) |
static <T> Stream<T> |
stream(Iterable<? extends CompletionStage<? extends T>> pendingPromises,
int chunkSize,
AsyncCompletions.Cancel cancelOption) |
static <T> Stream<T> |
stream(Stream<? extends CompletionStage<? extends T>> pendingPromises,
int chunkSize) |
static <T> Stream<T> |
stream(Stream<? extends CompletionStage<? extends T>> pendingPromises,
int chunkSize,
AsyncCompletions.Cancel cancelOption) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected AsyncCompletions(Iterator<? extends CompletionStage<? extends T>> pendingValues, int chunkSize, AsyncCompletions.Cancel cancelStrategy)
public void close()
close in interface AutoCloseablepublic static <T> Iterator<T> iterate(Stream<? extends CompletionStage<? extends T>> pendingPromises, int chunkSize)
public static <T> Iterator<T> iterate(Iterable<? extends CompletionStage<? extends T>> pendingPromises, int chunkSize)
public static <T> Stream<T> stream(Stream<? extends CompletionStage<? extends T>> pendingPromises, int chunkSize)
public static <T> Stream<T> stream(Stream<? extends CompletionStage<? extends T>> pendingPromises, int chunkSize, AsyncCompletions.Cancel cancelOption)
public static <T> Stream<T> stream(Iterable<? extends CompletionStage<? extends T>> pendingPromises, int chunkSize)
public static <T> Stream<T> stream(Iterable<? extends CompletionStage<? extends T>> pendingPromises, int chunkSize, AsyncCompletions.Cancel cancelOption)
Copyright © 2021. All rights reserved.