Class RetryContext

    • Constructor Summary

      Constructors 
      Constructor Description
      RetryContext()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.util.concurrent.Delayed delayed)  
      RetryContext delay​(long delay)  
      long getDelay​(java.util.concurrent.TimeUnit unit)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.eventmesh.runtime.core.protocol.grpc.retry.DelayRetryable

        retry
    • Field Detail

      • retryTimes

        public int retryTimes
      • executeTime

        public long executeTime
    • Constructor Detail

      • RetryContext

        public RetryContext()
    • Method Detail

      • compareTo

        public int compareTo​(java.util.concurrent.Delayed delayed)
        Specified by:
        compareTo in interface java.lang.Comparable<java.util.concurrent.Delayed>
      • getDelay

        public long getDelay​(java.util.concurrent.TimeUnit unit)
        Specified by:
        getDelay in interface java.util.concurrent.Delayed