Package net.sf.okapi.common.pipeline
Interface ICallableStep<T>
-
- Type Parameters:
T- - return type of call method, i.e. Event, SortableEvent
- All Superinterfaces:
AutoCloseable,Callable<T>,Function<Stream<Event>,Stream<Event>>,IPipelineStep
public interface ICallableStep<T> extends IPipelineStep, 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 Description IPipelineStepgetMainStep()Gets the main step wrapped by ICallableStepEventprocessNow(Event event)process the event now without threading.-
Methods inherited from interface net.sf.okapi.common.pipeline.IPipelineStep
apply, cancel, close, destroy, getDescription, getHelpLocation, getName, getParameters, getSourceLocale, getTargetLocale, handleEvent, handleStream, isDone, isLastOutputStep, setLastOutputStep, setParameters, setSourceLocale, setTargetLocale
-
-
-
-
Method Detail
-
getMainStep
IPipelineStep getMainStep()
Gets the main step wrapped by ICallableStep- Returns:
- the main step
-
-