public CandidateStatsEvent toStatsRegistryEvent() {
      return statsRegistryEvent;
    }
Internal scheduler event. Primarily intended for testing.

@param type
db-scheduler/src/main/java/com/github/kagkarlsson/scheduler/event/SchedulerListener.java