Class ConcurrentExecutor
java.lang.Object
io.github.ascopes.protobufmavenplugin.utils.ConcurrentExecutor
@Description("Manages an execution-wide thread pool for concurrent task execution")
@Named
public final class ConcurrentExecutor
extends Object
Helper component that allows scheduling IO-bound tasks within a thread pool.
- Since:
- 2.2.0
- Author:
- Ashley Scopes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R> Collector<FutureTask<R>, ?, List<R>> awaiting()voiddestroy()<R> FutureTask<R>
-
Constructor Details
-
ConcurrentExecutor
@Inject public ConcurrentExecutor()
-
-
Method Details
-
destroy
@PreDestroy public void destroy() -
submit
-
awaiting
-