@Override
  public void setLeaderElectorListener(LeaderElectorListener listener) {
    this.leaderElectorListener = listener;
  }
Register a LeaderElectorListener

@param listener {@link LeaderElectorListener} interfaces to be invoked upon completion of leader election participation
samza-core/src/main/java/org/apache/samza/zk/ZkLeaderElector.java