Class WarlockDangerProp
-
- All Implemented Interfaces:
@ConfigurationProperties(value = WarlockDangerProp.Key) public class WarlockDangerProp
wings-warlock-ticket-77.properties
- Since:
2021-02-17
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringKeypublic final static StringKey$maxFailurepublic DurationretrySteppublic final static StringKey$retrySteppublic intcacheSizepublic final static StringKey$cacheSizepublic DurationcacheTtlpublic final static StringKey$cacheTtl
-
Constructor Summary
Constructors Constructor Description WarlockDangerProp()
-
Method Summary
Modifier and Type Method Description DurationgetRetryStep()Retry interval when bad badCredentials. voidsetRetryStep(Duration retryStep)Retry interval when bad badCredentials. intgetCacheSize()cache size for danger voidsetCacheSize(int cacheSize)cache size for danger DurationgetCacheTtl()cache ttl for danger voidsetCacheTtl(Duration cacheTtl)cache ttl for danger booleanisMaxFailure()Whether to switch the account status to danger when the maximum failure is reached. booleanequals(@Nullable() Object o)inthashCode()StringtoString()voidsetMaxFailure(boolean maxFailure)Whether to switch the account status to danger when the maximum failure is reached. -
-
Method Detail
-
getRetryStep
Duration getRetryStep()
Retry interval when bad badCredentials.
-
setRetryStep
void setRetryStep(Duration retryStep)
Retry interval when bad badCredentials.
-
getCacheSize
int getCacheSize()
cache size for danger
-
setCacheSize
void setCacheSize(int cacheSize)
cache size for danger
-
getCacheTtl
Duration getCacheTtl()
cache ttl for danger
-
setCacheTtl
void setCacheTtl(Duration cacheTtl)
cache ttl for danger
-
isMaxFailure
boolean isMaxFailure()
Whether to switch the account status to danger when the maximum failure is reached.
-
hashCode
int hashCode()
-
setMaxFailure
void setMaxFailure(boolean maxFailure)
Whether to switch the account status to danger when the maximum failure is reached.
-
-
-
-