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 java.lang.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
Fields Modifier and Type Field Description private int
threads
The amount of threads to create in the throw-away executor service.
-
Constructor Summary
Constructors Constructor Description Factory(int threads)
Creates a new factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Plugin.Engine.Dispatcher
make(Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.String> unresolved)
Creates a new dispatcher.
-
-
-
Method Detail
-
make
public Plugin.Engine.Dispatcher make(Plugin.Engine.Target.Sink sink, java.util.List<TypeDescription> transformed, java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> failed, java.util.List<java.lang.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.
-
-