Class ValidationTask

  • All Implemented Interfaces:
    com.google.common.util.concurrent.ListenableFuture<TreeResponse>, java.lang.Runnable, java.util.concurrent.Future<TreeResponse>

    public class ValidationTask
    extends com.google.common.util.concurrent.AbstractFuture<TreeResponse>
    implements java.lang.Runnable
    ValidationTask sends ValidationRequest to a replica. When a replica sends back message, task completes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      Send ValidationRequest to replica
      void treesReceived​(MerkleTrees trees)
      Receive MerkleTrees from replica node.
      • Methods inherited from class com.google.common.util.concurrent.AbstractFuture

        addListener, afterDone, cancel, get, get, interruptTask, isCancelled, isDone, pendingToString, set, setException, setFuture, toString, tryInternalFastPathGetFailure, wasInterrupted
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • run

        public void run()
        Send ValidationRequest to replica
        Specified by:
        run in interface java.lang.Runnable
      • treesReceived

        public void treesReceived​(MerkleTrees trees)
        Receive MerkleTrees from replica node.
        Parameters:
        trees - MerkleTrees that is sent from replica. Null if validation failed on replica node.