code: void beforePollingCycle(final BeforePollingCycleEvent event) throws InterruptedException {
  
          notifyListeners(PollCycleListener.class, new Notifier<PollCycleListener>() {
  
              @Override
              public void notify(PollCycleListener listener) throws InterruptedException {
                  listener.beforePollingCycle(event);
              }
          });
      }
docs: /*
  Would be nice to change below anonymous Notifier implementations with Java8
  lambdas, in the future.