Interface Invoker


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

    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 Details

    • invoke

      <R, E extends Exception> R invoke(org.wildfly.common.function.ExceptionSupplier<R,E> action) throws E
      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
      Invokes the specified action
      Parameters:
      action - an action to be invoked
      Throws:
      Exception - if invocation fails