code: public void addHostEventHandler(IHostEventHandler hostEventHandler) {
          synchronized (hostEventHandlers) {
              if (!hostEventHandlers.contains(hostEventHandler)) {
                  hostEventHandlers.add(hostEventHandler);
              }
          }
      }
docs: Adds an event handler for background polling events.
  
  @param hostEventHandler An event handler.