net.sf.okapi.common.pipeline

## Interface ICallableStep<T>

- Type Parameters:
    `T` - - return type of call method, i.e. Event, SortableEvent
  All Superinterfaces:
    java.util.concurrent.Callable<T>, IPipelineStep

      public interface ICallableStep<T>
      extends IPipelineStep, java.util.concurrent.Callable<T>

  Step that implements the Callable interface and can be run concurrently.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `IPipelineStep` | `getMainStep()` Gets the main step wrapped by ICallableStep
    `Event` | `processNow(Event event)` process the event now without threading.

    - ### Methods inherited from interface net.sf.okapi.common.pipeline.IPipelineStep

      `cancel, destroy, getDescription, getHelpLocation, getName, getParameters, handleEvent, isDone, isLastOutputStep, setLastOutputStep, setParameters`

    - ### Methods inherited from interface java.util.concurrent.Callable

      `call`

- - ### Method Detail

    - #### getMainStep

          IPipelineStep getMainStep()

      Gets the main step wrapped by ICallableStep
      Returns:
        the main step

    - #### processNow

          Event processNow(Event event)

      process the event now without threading. Normally used for initialization events such as START_BATCH etc.
      Parameters:
        `event` - - event to be processed
      Returns:
        the resulting event