Class ServiceValueExecutor<T>

    • Constructor Detail

      • ServiceValueExecutor

        public ServiceValueExecutor​(org.jboss.msc.service.ServiceName name)
    • Method Detail

      • accept

        public void accept​(T value)
        Specified by:
        accept in interface Consumer<T>
      • execute

        public <R,​E extends Exception> R execute​(org.wildfly.common.function.ExceptionFunction<T,​R,​E> function)
                                                throws E extends Exception
        Description copied from interface: FunctionExecutor
        Executes the given function.
        Specified by:
        execute in interface FunctionExecutor<T>
        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