Class RetryContext
- java.lang.Object
-
- org.apache.eventmesh.runtime.core.protocol.grpc.retry.RetryContext
-
- All Implemented Interfaces:
java.lang.Comparable<java.util.concurrent.Delayed>,java.util.concurrent.Delayed,DelayRetryable
- Direct Known Subclasses:
AbstractPushRequest,SendMessageContext
public abstract class RetryContext extends java.lang.Object implements DelayRetryable
-
-
Field Summary
Fields Modifier and Type Field Description longexecuteTimeintretryTimes
-
Constructor Summary
Constructors Constructor Description RetryContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(java.util.concurrent.Delayed delayed)RetryContextdelay(long delay)longgetDelay(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
-
-
-
-
Method Detail
-
delay
public RetryContext delay(long delay)
-
compareTo
public int compareTo(java.util.concurrent.Delayed delayed)
- Specified by:
compareToin interfacejava.lang.Comparable<java.util.concurrent.Delayed>
-
getDelay
public long getDelay(java.util.concurrent.TimeUnit unit)
- Specified by:
getDelayin interfacejava.util.concurrent.Delayed
-
-