]
Paul Ferraro updated WFLY-9842:
-------------------------------
Summary: Enhance CommandDispatcher async methods to use CompletableFutures (was:
Enhance CommandDispatcher's async methods to return CompletableFutures)
Enhance CommandDispatcher async methods to use CompletableFutures
-----------------------------------------------------------------
Key: WFLY-9842
URL:
https://issues.jboss.org/browse/WFLY-9842
Project: WildFly
Issue Type: Enhancement
Components: Clustering
Affects Versions: No Release
Reporter: Paul Ferraro
Assignee: Paul Ferraro
This allows consumers of CommandDispatcher to implement non-blocking handling of
dispatched commands.
The submitOnNode(...) method can just be modified to return the more specific return
value. However, the submitOnCluster(...) will need a different method name (or
signature).
The MessageDispatcher in JGroups 4 now returns CompletableFutures natively, which means
we can easily support this without the addition of yet another thread pool.