Package net.kuujo.copycat.protocol

Examples of net.kuujo.copycat.protocol.PollResponse


      context.transition(FollowerController.class);
    }

    // If the vote request is not for this candidate then reject the vote.
    if (!request.candidate().equals(context.clusterManager().localNode().member().id())) {
      return CompletableFuture.completedFuture(logResponse(new PollResponse(logRequest(request).id(), context.currentTerm(), false)));
    } else {
      return super.poll(request);
    }
  }
View Full Code Here

TOP

Related Classes of net.kuujo.copycat.protocol.PollResponse

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.