- private static final EventHandler<DOMNotificationRouterEvent> DISPATCH_NOTIFICATIONS = new EventHandler<DOMNotificationRouterEvent>() {
- @Override
- public void onEvent(final DOMNotificationRouterEvent event, final long sequence, final boolean endOfBatch) throws Exception {
- event.deliverNotification();
-
- }
- };
- private static final EventHandler<DOMNotificationRouterEvent> NOTIFY_FUTURE = new EventHandler<DOMNotificationRouterEvent>() {
- @Override
- public void onEvent(final DOMNotificationRouterEvent event, final long sequence, final boolean endOfBatch) {
- event.setFuture();
- }
- };
+ private static final EventHandler<DOMNotificationRouterEvent> DISPATCH_NOTIFICATIONS =
+ (event, sequence, endOfBatch) -> event.deliverNotification();
+ private static final EventHandler<DOMNotificationRouterEvent> NOTIFY_FUTURE =
+ (event, sequence, endOfBatch) -> event.setFuture();