Yakov, I agree with Andrey that a separate abstraction for failure handling makes sense.
First, using event listeners for this kind of response allows users to install multiple listeners, which may be invoked in an unpredictable order, this looks error-prone to me. Second, we may add an additional methods to failure handlers in future releases (say, Ignite 3.00), so it is better to have a separate interface right away. I do not mind adding a separate event for this, though, but the event should be used for notifications, not to run any reaction code. --AG 2018-03-23 22:27 GMT+03:00 Yakov Zhdanov <yzhda...@apache.org>: > Andrey, I understand your point but you are trying to build one more > mechanism and introduce abstractions that are already here. Again, please > take a look at segmentation policy and event types we already have. > > Thanks! > > Yakov >