java.lang.Object
io.jooby.ReactiveSupport
Utility function for handling
CompletionStage
and Flow.Publisher
.- Since:
- 3.0.0
- Author:
- edgar
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Route.Filter
Concurrent filter.static <T> Flow.Subscriber<T>
newSubscriber
(Context ctx) Creates a subscriber from web context.
-
Constructor Details
-
ReactiveSupport
public ReactiveSupport()
-
-
Method Details
-
newSubscriber
Creates a subscriber from web context.- Type Parameters:
T
- Flow type.- Parameters:
ctx
- Web Context.- Returns:
- New subscriber.
-
concurrent
Concurrent filter. HandleCompletionStage
andFlow
responses.- Returns:
- Filter.
-