Class SmartExecutor.Direct
java.lang.Object
org.eclipse.aether.util.concurrency.SmartExecutor.Direct
- All Implemented Interfaces:
AutoCloseable
,SmartExecutor
- Enclosing interface:
SmartExecutor
Direct executor (caller executes).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.aether.util.concurrency.SmartExecutor
SmartExecutor.Direct, SmartExecutor.Limited, SmartExecutor.NonClosing, SmartExecutor.Pooled
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Shut down this instance (ideally used in try-with-resource construct).void
Submits aRunnable
to execution.<T> CompletableFuture
<T> Submits aCallable
to execution, returns aCompletableFuture
.
-
Constructor Details
-
Direct
public Direct()
-
-
Method Details
-
submit
Description copied from interface:SmartExecutor
Submits aRunnable
to execution.- Specified by:
submit
in interfaceSmartExecutor
-
submit
Description copied from interface:SmartExecutor
Submits aCallable
to execution, returns aCompletableFuture
.- Specified by:
submit
in interfaceSmartExecutor
-
close
Description copied from interface:SmartExecutor
Shut down this instance (ideally used in try-with-resource construct).- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSmartExecutor
-