Schnittstelle CallWrapper


public interface CallWrapper
Provides methods for wrapping other method calls. This can be useful to ensure preparations have been done for a larger set of various method calls, for example.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    call(Runnable runnable)
    Calls a mehtod that has no return value.
    <R> R
    call(Callable<R> callable)
    Calls a method that has a return value.
  • Methodendetails

    • call

      <R> R call(Callable<R> callable) throws Exception
      Calls a method that has a return value.
      Typparameter:
      R - The return value's type.
      Parameter:
      callable - The method wrapped in a Callable instance.
      Gibt zurück:
      The result of the method's call.
      Löst aus:
      Exception - If there was an exception calling method.
    • call

      void call(Runnable runnable) throws Exception
      Calls a mehtod that has no return value.
      Parameter:
      runnable - The method wrapped in a Runnable instance.
      Löst aus:
      Exception - If there was an exception calling method.