T - Typepublic class CompletableFutureStreamSubscriber<T> extends CompletableFuture<Stream<T>> implements org.reactivestreams.Subscriber<T>
Subscriber adapter for CompletableFuture of results stream.CompletableFuture.AsynchronousCompletionTask| Constructor and Description |
|---|
CompletableFutureStreamSubscriber() |
| Modifier and Type | Method and Description |
|---|---|
static <T> CompletableFuture<Stream<T>> |
fromPublisher(org.reactivestreams.Publisher<T> publisher) |
void |
onComplete() |
void |
onError(Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completedFuture, completeExceptionally, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, obtrudeException, obtrudeValue, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsyncpublic void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe in interface org.reactivestreams.Subscriber<T>public void onError(Throwable t)
onError in interface org.reactivestreams.Subscriber<T>public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<T>public static <T> CompletableFuture<Stream<T>> fromPublisher(org.reactivestreams.Publisher<T> publisher)
Copyright © 2019 The Holon Platform. All rights reserved.