Interface InvocationSuccessAction

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void accept​(InvocationContext rCtx, org.infinispan.commands.VisitableCommand rCommand, java.lang.Object rv)
      Process the result from a successful invocation stage and possibly throw an exception.
      default java.lang.Object apply​(InvocationContext rCtx, org.infinispan.commands.VisitableCommand rCommand, java.lang.Object rv, java.lang.Throwable throwable)
      Process the result or the exception from an invocation stage and either return a simple value, return a new InvocationStage, or throw an exception.
    • Method Detail

      • accept

        void accept​(InvocationContext rCtx,
                    org.infinispan.commands.VisitableCommand rCommand,
                    java.lang.Object rv)
             throws java.lang.Throwable
        Process the result from a successful invocation stage and possibly throw an exception.
        Throws:
        java.lang.Throwable
      • apply

        default java.lang.Object apply​(InvocationContext rCtx,
                                       org.infinispan.commands.VisitableCommand rCommand,
                                       java.lang.Object rv,
                                       java.lang.Throwable throwable)
                                throws java.lang.Throwable
        Description copied from interface: InvocationCallback
        Process the result or the exception from an invocation stage and either return a simple value, return a new InvocationStage, or throw an exception.
        Specified by:
        apply in interface InvocationCallback
        Throws:
        java.lang.Throwable