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:
java.io.Closeable
,java.lang.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 Classes Modifier and Type Class Description static class
Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorService.Factory
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
Fields Modifier and Type Field Description private java.util.concurrent.ExecutorService
executorService
The executor service to delegate any work to.
-
Constructor Summary
Constructors Modifier Constructor Description protected
WithThrowawayExecutorService(java.util.concurrent.ExecutorService executorService, 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 that applies transformations in parallel and that closes the supplies executor service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
-
Methods inherited from class net.bytebuddy.build.Plugin.Engine.Dispatcher.ForParallelTransformation
accept, complete
-
-
-
-
Constructor Detail
-
WithThrowawayExecutorService
protected WithThrowawayExecutorService(java.util.concurrent.ExecutorService executorService, 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 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 Detail
-
close
public void close()
Description copied from class:Plugin.Engine.Dispatcher.ForParallelTransformation
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classPlugin.Engine.Dispatcher.ForParallelTransformation
-
-