Interface FunctionExecutor<T>

  • Type Parameters:
    T - the type of the function argument
    All Known Implementing Classes:
    ServiceValueExecutor

    public interface FunctionExecutor<T>
    Encapsulates execution of a function.
    Author:
    Paul Ferraro
    • Method Detail

      • execute

        <R,​E extends Exception> R execute​(org.wildfly.common.function.ExceptionFunction<T,​R,​E> function)
                                         throws E extends Exception
        Executes the given function.
        Type Parameters:
        R - the return type
        E - the exception type
        Parameters:
        function - a function to execute
        Returns:
        the result of the function
        Throws:
        E - if the function fails to execute
        E extends Exception