Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Usually a permit acquisition is followed by an action, followed by a release of the permit. A simple enhancement to the existing Semaphore API can be made that enables asynchronous acquire:
<T> IgniteFuture<T> acquireAndExecute(Callable<T> action, int numPermits);
The method would immediately return a future to be later completed by the action's result. Permits are to be released after the future is completed.
Attachments
Issue Links
- causes
-
IGNITE-14688 testDetectPeerDeployAwareInfiniteRecursion fails on TeamCity
- Resolved
- links to