Interface Invocable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Object getResult()
      Determine the result from the invocation of this object.
      void init​(InvocationService service)
      Called by the InvocationService exactly once on this Invocable object as part of its initialization.
      void run()
      Called exactly once by the InvocationService to invoke this Invocable object.
    • Method Detail

      • init

        void init​(InvocationService service)
        Called by the InvocationService exactly once on this Invocable object as part of its initialization.

        Note: implementations of the Invocable interface that store the service reference must do so only in a transient field.

        Parameters:
        service - the containing InvocationService
      • run

        void run()
        Called exactly once by the InvocationService to invoke this Invocable object.
        Specified by:
        run in interface Runnable
      • getResult

        Object getResult()
        Determine the result from the invocation of this object. This method is called by the InvocationService after the run method returns.
        Returns:
        the invocation result, if any