public static class Plugin.Engine.Dispatcher.ForSerialTransformation extends Object implements Plugin.Engine.Dispatcher
Modifier and Type | Class and Description |
---|---|
static class |
Plugin.Engine.Dispatcher.ForSerialTransformation.Factory
A factory for creating a serial dispatcher.
|
Plugin.Engine.Dispatcher.ForParallelTransformation, Plugin.Engine.Dispatcher.ForSerialTransformation, Plugin.Engine.Dispatcher.Materializable
Modifier | Constructor and Description |
---|---|
protected |
ForSerialTransformation(Plugin.Engine.Target.Sink sink,
List<TypeDescription> transformed,
Map<TypeDescription,List<Throwable>> failed,
List<String> unresolved)
Creates a dispatcher for a serial transformation.
|
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 ForSerialTransformation(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription,List<Throwable>> failed, List<String> unresolved)
sink
- The sink to write any work to.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) throws IOException
accept
in interface Plugin.Engine.Dispatcher
work
- 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.IOException
- If an I/O exception occurs.public void complete() throws IOException
complete
in interface Plugin.Engine.Dispatcher
IOException
- If an I/O exception occurs.public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014–2025. All rights reserved.