code: public void doAsActiveServer() {
      while (true) {
        LOG.info("No business logic, sleep for " + Integer.MAX_VALUE);
        try {
          Thread.sleep(Integer.MAX_VALUE);
        } catch (InterruptedException e) {
          LOG.error("Interrupt when sleeping as active master", e);
        }
      }
    }
docs: The method you should override to do your business logic after becoming active master.