Interface IWorkUnitExecutor


public interface IWorkUnitExecutor
An object which can execute a work unit within a specific context. The details of what a context is depends on the implementation.
Since:
9.5.2
Author:
Petru Galanton
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    Submits for work a unit of work which returns a result.
    void
    Submits for execution a unit of work.
  • Method Details

    • submit

      void submit(IWorkUnit work)
      Submits for execution a unit of work.
      Parameters:
      work - the unit of work to execute
    • submit

      <T> T submit(ITypedWorkUnit<T> work)
      Submits for work a unit of work which returns a result.
      Type Parameters:
      T - the type of the work unit
      Parameters:
      work - the work to execute
      Returns:
      the result returned by the unit of work