Package net.toddm.comm
Class RetryProfile
- java.lang.Object
-
- net.toddm.comm.RetryProfile
-
public class RetryProfile extends Object
Returned byRetryPolicyProviderimplementers to describe needed retry work (indicate if a retry should be attempted and how long to wait).- Author:
- Todd S. Murchison
-
-
Constructor Summary
Constructors Constructor Description RetryProfile(boolean shouldRetry, long retryAfterMilliseconds)Constructs an instance ofRetryProfilewith the given values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetRetryAfterMilliseconds()Returns the number of milliseconds that it is recommended to wait before retrying aRequest.booleanshouldRetry()Returns a flag indicating if it is recommended to retry aRequest.
-
-
-
Constructor Detail
-
RetryProfile
public RetryProfile(boolean shouldRetry, long retryAfterMilliseconds)Constructs an instance ofRetryProfilewith the given values.
-
-