Interface Invoker


  • public interface Invoker
    Defines a strategy for invoking a given action.
    Author:
    Paul Ferraro
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <E extends Exception>
      void
      invoke​(org.wildfly.common.function.ExceptionRunnable<E> action)
      Invokes the specified action
      <R,​E extends Exception>
      R
      invoke​(org.wildfly.common.function.ExceptionSupplier<R,​E> action)
      Invokes the specified action
    • Method Detail

      • invoke

        <R,​E extends Exception> R invoke​(org.wildfly.common.function.ExceptionSupplier<R,​E> action)
                                        throws E extends Exception
        Invokes the specified action
        Parameters:
        action - an action to be invoked
        Returns:
        the result of the action
        Throws:
        Exception - if invocation fails
      • invoke

        <E extends Exception> void invoke​(org.wildfly.common.function.ExceptionRunnable<E> action)
                                   throws E extends Exception
        Invokes the specified action
        Parameters:
        action - an action to be invoked
        Throws:
        Exception - if invocation fails