Class Plugin.Engine.Dispatcher.ForParallelTransformation.WithThrowawayExecutorService.Factory

    • 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.
    • Field Detail

      • threads

        private final int threads
        The amount of threads to create in the throw-away executor service.
    • Constructor Detail

      • Factory

        public Factory​(int threads)
        Creates a new factory.
        Parameters:
        threads - The amount of threads to create in the throw-away executor service.
    • 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 interface Plugin.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.