Exemplo n.º 1
0
 /**
  * Notify the {@link ReplicaManager} to send an update the next possible time it can
  *
  * @return futures with the result of the update
  */
 @Nonnull
 @VisibleForTesting
 List<ListenableFuture<AppendEntriesResponse>> sendRequests() {
   List<ListenableFuture<AppendEntriesResponse>> responses = Lists.newArrayList();
   for (ReplicaManager replicaManager : managers.values()) {
     responses.add(replicaManager.fireUpdate());
   }
   return responses;
 }