Class WorkerFactory


  • public final class WorkerFactory
    extends java.lang.Object
    WorkerImpl Factory to create workerImpl
    • Method Detail

      • getInstance

        public static WorkerFactory getInstance​(PluginLoader pluginLoader)
        return the only instance of WorkerFactory. Build the instance at the first call. This method is synchronised, for performance issue, please call only one time.
        Parameters:
        pluginLoader - the plugin loader
        Returns:
        WorkerFactory
      • create

        public Worker create()
        Returns:
        WorkerImpl