]
William Burns updated ISPN-9614:
--------------------------------
Summary: Convert listeners to work with async interceptor stack (was: Convert
listners to work with async interceptor stack)
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: William Burns
Assignee: William 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>).