Package org.springframework.cloud.consul
Class RetryProperties
- java.lang.Object
-
- org.springframework.cloud.consul.RetryProperties
-
@ConfigurationProperties("spring.cloud.consul.retry") public class RetryProperties extends Object
- Author:
- Spencer Gibb
-
-
Constructor Summary
Constructors Constructor Description RetryProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getInitialInterval()
int
getMaxAttempts()
long
getMaxInterval()
double
getMultiplier()
boolean
isEnabled()
void
setEnabled(boolean enabled)
void
setInitialInterval(long initialInterval)
void
setMaxAttempts(int maxAttempts)
void
setMaxInterval(long maxInterval)
void
setMultiplier(double multiplier)
String
toString()
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
Consul Retry Properties prefix.- See Also:
- Constant Field Values
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
getInitialInterval
public long getInitialInterval()
-
setInitialInterval
public void setInitialInterval(long initialInterval)
-
getMultiplier
public double getMultiplier()
-
setMultiplier
public void setMultiplier(double multiplier)
-
getMaxInterval
public long getMaxInterval()
-
setMaxInterval
public void setMaxInterval(long maxInterval)
-
getMaxAttempts
public int getMaxAttempts()
-
setMaxAttempts
public void setMaxAttempts(int maxAttempts)
-
-