Class RetryOnFailureXSiteCommand

    • Method Detail

      • execute

        public void execute​(RpcManager rpcManager,
                            long waitTimeBetweenRetries,
                            java.util.concurrent.TimeUnit unit)
                     throws java.lang.Throwable
        Invokes remotely the command using the Transport passed as parameter.
        Parameters:
        rpcManager - the RpcManager to use.
        waitTimeBetweenRetries - the waiting time if the command fails before retrying it.
        unit - the TimeUnit of the waiting time.
        Throws:
        java.lang.Throwable - if the maximum retries is reached (defined by the RetryOnFailureXSiteCommand.RetryPolicy, the last exception occurred is thrown.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object