]
Will Burns resolved ISPN-9614.
------------------------------
Resolution: Done
Convert listeners to work with async interceptor stack
------------------------------------------------------
Key: ISPN-9614
URL:
https://issues.jboss.org/browse/ISPN-9614
Project: Infinispan
Issue Type: Enhancement
Components: Listeners
Reporter: Will Burns
Assignee: Will Burns
Priority: Major
Fix For: 10.0.0.Final
Currently a sync listener will block the thread that is notifying it. It should return a
_CompletableFuture_ to integrate properly with the async stack to be notified upon
completion.
Also we should not invoke "alien" listeners on the same thread as they could
block. We should allow listener to make itself async in some manner (ie. return type is
CompletableFuture<Void>).