Module io.jooby
Package io.jooby

Class ReactiveSupport

java.lang.Object
io.jooby.ReactiveSupport

public class ReactiveSupport extends Object
Utility function for handling CompletionStage and Flow.Publisher.
Since:
3.0.0
Author:
edgar
  • Constructor Details

    • ReactiveSupport

      public ReactiveSupport()
  • Method Details

    • newSubscriber

      public static <T> Flow.Subscriber<T> newSubscriber(Context ctx)
      Creates a subscriber from web context.
      Type Parameters:
      T - Flow type.
      Parameters:
      ctx - Web Context.
      Returns:
      New subscriber.
    • concurrent

      public static Route.Filter concurrent()
      Concurrent filter. Handle CompletionStage and Flow responses.
      Returns:
      Filter.