I just checked the latest artifact which provided a central way to configure a callback for a notification key, which is great!
Reactors.reactor().env(env).consumerNotFoundHandler(new Consumer<Object>() {
@Override
public void accept(Object key) {
//todo something with the key...
}
}).get();
But I just wonder if we can have this improvement, where the consumer is onConsumerMissing ?
because if using the central way, we don't know which event is discarded, but only know the key.
reactor.notify(Object
key, E ev, new Consumer<Object>() {
@Override
public void accept(Object key) {
// todo something with the key and event...
}
});
Or any other ways to achieve this?
Thanks,
Bin