Interface VisitableCommand

    • Method Detail

      • perform

        Object perform​(InvocationContext ctx)
                throws Throwable
        Performs the primary function of the command. Please see specific implementation classes for details on what is performed as well as return types. Important: this method will be invoked at the end of interceptors chain. It should never be called directly from a custom interceptor.
        Specified by:
        perform in interface ReplicableCommand
        Parameters:
        ctx - invocation context
        Returns:
        arbitrary return value generated by performing this command
        Throws:
        Throwable - in the event of problems.
      • acceptVisitor

        Object acceptVisitor​(InvocationContext ctx,
                             Visitor visitor)
                      throws Throwable
        Accept a visitor, and return the result of accepting this visitor.
        Parameters:
        ctx - invocation context
        visitor - visitor to accept
        Returns:
        arbitrary return value
        Throws:
        Throwable - in the event of problems
      • shouldInvoke

        @Deprecated
        default boolean shouldInvoke​(InvocationContext ctx)
        Deprecated.
        Since 9.0, no longer used.
        Used by the InboundInvocationHandler to determine whether the command should be invoked or not.
        Returns:
        true if the command should be invoked, false otherwise.
      • ignoreCommandOnStatus

        @Deprecated
        default boolean ignoreCommandOnStatus​(ComponentStatus status)
        Deprecated.
        Since 9.0, no longer used.
        Used to determine whether the command should be invoked or not. Commands can opt to be discarded in case the cache status is not suited (as InvalidateCommand)
        Returns:
        true if the command should NOT be invoked.