Package net.bytebuddy.build
Class Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorService
java.lang.Object
net.bytebuddy.build.Plugin.Engine.Dispatcher.ForParallelTransformation
net.bytebuddy.build.Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorService
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Plugin.Engine.Dispatcher
- Enclosing class:
Plugin.Engine.Dispatcher.ForParallelTransformation
@Enhance
public static class Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorService
extends Plugin.Engine.Dispatcher.ForParallelTransformation
A parallel dispatcher that shuts down its executor service upon completion of a plugin engine's application.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A factory for a parallel executor service that creates a new executor service on each plugin engine application.Nested classes/interfaces inherited from class net.bytebuddy.build.Plugin.Engine.Dispatcher.ForParallelTransformation
Plugin.Engine.Dispatcher.ForParallelTransformation.EagerWork, Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorService
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.Dispatcher
Plugin.Engine.Dispatcher.ForParallelTransformation, Plugin.Engine.Dispatcher.ForSerialTransformation, Plugin.Engine.Dispatcher.Materializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ExecutorService
The executor service to delegate any work to. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
WithThrowawayExecutorService
(ExecutorService executorService, 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 and that closes the supplies executor service. -
Method Summary
Methods inherited from class net.bytebuddy.build.Plugin.Engine.Dispatcher.ForParallelTransformation
accept, complete
-
Field Details
-
executorService
The executor service to delegate any work to.
-
-
Constructor Details
-
WithThrowawayExecutorService
protected WithThrowawayExecutorService(ExecutorService executorService, 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 and that closes the supplies executor service.- Parameters:
executorService
- The executor service 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.
-
-
Method Details
-
close
public void close()Description copied from class:Plugin.Engine.Dispatcher.ForParallelTransformation
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classPlugin.Engine.Dispatcher.ForParallelTransformation
-