public static class Plugin.Engine.Dispatcher.ForParallelTransformation extends Object implements Plugin.Engine.Dispatcher
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | Plugin.Engine.Dispatcher.ForParallelTransformation.EagerWorkAn eager materialization that does not defer processing after preprocessing. | 
| static class  | Plugin.Engine.Dispatcher.ForParallelTransformation.FactoryA factory for a dispatcher that uses a given executor service for parallel dispatching. | 
| static class  | Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorServiceA parallel dispatcher that shuts down its executor service upon completion of a plugin engine's application. | 
Plugin.Engine.Dispatcher.ForParallelTransformation, Plugin.Engine.Dispatcher.ForSerialTransformation, Plugin.Engine.Dispatcher.Materializable| Modifier | Constructor and Description | 
|---|---|
| protected  | ForParallelTransformation(Executor executor,
                         Plugin.Engine.Target.Sink sink,
                         List<TypeDescription> transformed,
                         Map<TypeDescription,List<Throwable>> failed,
                         List<String> unresolved)Creates a new dispatcher that applies transformations in parallel. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | accept(Callable<? extends Callable<? extends Plugin.Engine.Dispatcher.Materializable>> work,
      boolean eager)Accepts a new work assignment. | 
| void | close() | 
| void | complete()Completes the work being handled. | 
protected ForParallelTransformation(Executor executor, Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription,List<Throwable>> failed, List<String> unresolved)
executor - The executor to delegate any work to.sink - The target sink.transformed - A list of all types that are transformed.failed - A mapping of all types that failed during transformation to the exceptions that explain the failure.unresolved - A list of type names that could not be resolved.public void accept(Callable<? extends Callable<? extends Plugin.Engine.Dispatcher.Materializable>> work, boolean eager)
accept in interface Plugin.Engine.Dispatcherwork - The work to handle prefixed by a preprocessing step.eager - true if the processing does not need to be deferred until all preprocessing is complete.public void complete()
              throws IOException
complete in interface Plugin.Engine.DispatcherIOException - If an I/O exception occurs.public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2014–2024. All rights reserved.