Package net.bytebuddy.build
Class Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorService.Factory
java.lang.Object
net.bytebuddy.build.Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorService.Factory
- All Implemented Interfaces:
Plugin.Engine.Dispatcher.Factory
@Enhance
public static class Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorService.Factory
extends Object
implements Plugin.Engine.Dispatcher.Factory
A factory for a parallel executor service that creates a new executor service on each plugin engine application.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The amount of threads to create in the throw-away executor service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmake
(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher.
-
Field Details
-
threads
private final int threadsThe amount of threads to create in the throw-away executor service.
-
-
Constructor Details
-
Factory
public Factory(int threads) Creates a new factory.- Parameters:
threads
- The amount of threads to create in the throw-away executor service.
-
-
Method Details
-
make
public Plugin.Engine.Dispatcher make(Plugin.Engine.Target.Sink sink, List<TypeDescription> transformed, Map<TypeDescription, List<Throwable>> failed, List<String> unresolved) Creates a new dispatcher.- Specified by:
make
in interfacePlugin.Engine.Dispatcher.Factory
- Parameters:
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.- Returns:
- The dispatcher to use.
-