Class SmartExecutor.Limited
java.lang.Object
org.eclipse.aether.util.concurrency.SmartExecutor.Limited
- All Implemented Interfaces:
AutoCloseable
,SmartExecutor
- Enclosing interface:
SmartExecutor
Limited executor, where the actual goal is to protect accessed resource, like when virtual threads
are being used, so the "pool" itself does not provide any kind of back-pressure.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.aether.util.concurrency.SmartExecutor
SmartExecutor.Direct, SmartExecutor.Limited, SmartExecutor.NonClosing, SmartExecutor.Pooled
-
Method Summary
-
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
-