Package net.kuujo.copycat.protocol

Examples of net.kuujo.copycat.protocol.PingRequest


      return pingFutures.lastEntry().getValue();
    }

    pingFutures.put(index, future);

    PingRequest request = new PingRequest(state.nextCorrelationId(), state.currentTerm(), state.cluster().localMember().id(), index, log.containsEntry(index) ? log.<CopycatEntry>getEntry(index).term() : 0, state.commitIndex());
    LOGGER.debug("{} - Sent {} to {}", state.clusterManager().localNode(), request, node);
    node.client().ping(request).whenComplete((response, error) -> {
      if (error != null) {
        triggerPingFutures(index, error);
      } else {
View Full Code Here

TOP

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

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.