Class RxJavaProtocolValidator


  • public final class RxJavaProtocolValidator
    extends java.lang.Object
    Installs assembly hooks that validate the Reactive-Streams and derived protocols are honored.
    Since:
    0.17.4
    See Also:
    setOnViolationHandler(PlainConsumer), enable()
    • Method Detail

      • enableAndChain

        public static SavedHooks enableAndChain()
        Enable the protocol violation hooks by chaining it before any existing hook.
        Returns:
        the SavedHooks instance that allows restoring the previous assembly hook handlers overridden by this method
        See Also:
        enable()
      • disable

        public static void disable()
        Disables the validation hooks be resetting the assembly hooks to none.
      • isEnabled

        public static boolean isEnabled()
        Returns true if the validation hooks have been installed.
        Returns:
        true if the validation hooks have been installed