Package net.kuujo.copycat.event

Examples of net.kuujo.copycat.event.LeaderElectEvent


      LOGGER.debug("{} - currentLeader: {}", clusterManager.localNode(), leader);
    }

    if (currentLeader == null && leader != null) {
      currentLeader = leader;
      events.leaderElect().handle(new LeaderElectEvent(currentTerm, clusterManager.node(currentLeader).member()));
    } else if (currentLeader != null && leader != null && !currentLeader.equals(leader)) {
      currentLeader = leader;
      events.leaderElect().handle(new LeaderElectEvent(currentTerm, clusterManager.node(currentLeader).member()));
    } else {
      currentLeader = leader;
    }
    return this;
  }
View Full Code Here

TOP

Related Classes of net.kuujo.copycat.event.LeaderElectEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.