Interface ReactiveValidator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> java.util.concurrent.CompletionStage<T> validateCompletionStage​(java.util.concurrent.CompletionStage<T> completionStage, java.lang.Class<?>... groups)
      Validate the given CompletionStage by returning a new CompletionStage that validates the emitted value.
      <T> org.reactivestreams.Publisher<T> validatePublisher​(org.reactivestreams.Publisher<T> publisher, java.lang.Class<?>... groups)
      Validate the given publisher by returning a new Publisher that validates each emitted value.
    • Method Detail

      • validatePublisher

        @NonNull
        <T> org.reactivestreams.Publisher<T> validatePublisher​(@NonNull
                                                               org.reactivestreams.Publisher<T> publisher,
                                                               java.lang.Class<?>... groups)
        Validate the given publisher by returning a new Publisher that validates each emitted value. If a constraint violation error occurs a ConstraintViolationException will be thrown.
        Type Parameters:
        T - The generic type
        Parameters:
        publisher - The publisher
        groups - The groups
        Returns:
        The publisher
      • validateCompletionStage

        @NonNull
        <T> java.util.concurrent.CompletionStage<T> validateCompletionStage​(@NonNull
                                                                            java.util.concurrent.CompletionStage<T> completionStage,
                                                                            java.lang.Class<?>... groups)
        Validate the given CompletionStage by returning a new CompletionStage that validates the emitted value. If a constraint violation error occurs a ConstraintViolationException will be thrown.
        Type Parameters:
        T - The generic type
        Parameters:
        completionStage - The completion stage
        groups - The groups
        Returns:
        The publisher