Package org.omegat.core.threads
Class LongProcessExecutor
java.lang.Object
org.omegat.core.threads.LongProcessExecutor
- All Implemented Interfaces:
AutoCloseable
Centralized executor for long-running background work.
Why this exists: - Avoids ad-hoc Thread subclasses - Provides a uniform cancellation and completion story - Makes testing and waiting consistent (via CompletableFuture)
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LongProcessExecutor
-
-
Method Details
-
submit
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-