public static interface Stage.FromCompletionStage extends Stage
CompletionStage
.
This stage must emit the value produced by the CompletionStage
, then immediately complete the stream.
If the value is null
, then no element must be emitted, and the stream should be failed with a
NullPointerException
. If the CompletionStage
is redeemed with a failure, the stream must be
failed with that failure.
If the stream is cancelled by downstream before the CompletionStage
has been redeemed, then this stage
must do nothing. It must not cancel the CompletionStage
(since CompletionStage
offers no API
for cancellation), and it must not emit any further signals when the CompletionStage
is redeemed.
Stage.Cancel, Stage.Collect, Stage.Concat, Stage.Coupled, Stage.Distinct, Stage.DropWhile, Stage.Failed, Stage.Filter, Stage.FindFirst, Stage.FlatMap, Stage.FlatMapCompletionStage, Stage.FlatMapIterable, Stage.FromCompletionStage, Stage.FromCompletionStageNullable, Stage.Limit, Stage.Map, Stage.Of, Stage.OnComplete, Stage.OnError, Stage.OnErrorResume, Stage.OnErrorResumeWith, Stage.OnTerminate, Stage.Peek, Stage.ProcessorStage, Stage.PublisherStage, Stage.Skip, Stage.SubscriberStage, Stage.TakeWhile
Modifier and Type | Method and Description |
---|---|
CompletionStage<?> |
getCompletionStage()
Get the
CompletionStage . |
CompletionStage<?> getCompletionStage()
CompletionStage
.Copyright © 2019 Eclipse Foundation. All rights reserved.