@ConfigurationProperties(prefix="gobrs.async.config",
ignoreInvalidFields=false)
@PropertySource(value={"classpath:config/gobrs.yaml","classpath:config/gobrs.yml","classpath:config/gobrs.properties"},
ignoreResourceNotFound=false,
factory=GobbrsPropertySourceFactory.class)
@Component
public class GobrsAsyncProperties
extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
GobrsAsyncProperties.ThreadPool
The type Thread pool.
|
| 构造器和说明 |
|---|
GobrsAsyncProperties() |
| 限定符和类型 | 方法和说明 |
|---|---|
PlatformConfig |
getPlatform()
Gets platform.
|
String |
getPoint()
Gets point.
|
List<RuleConfig> |
getRules()
Gets rules.
|
String |
getSplit()
Gets split.
|
GobrsAsyncProperties.ThreadPool |
getThreadPool()
Gets thread pool.
|
long |
getTimeout()
Gets timeout.
|
Integer |
getTimeoutCoreSize()
Gets timeout core size.
|
boolean |
isCatchable()
Is catchable boolean.
|
boolean |
isEnable()
Is enable boolean.
|
boolean |
isParamContext()
Is param context boolean.
|
boolean |
isRelyDepend()
Is rely depend boolean.
|
void |
setCatchable(boolean catchable)
Sets catchable.
|
void |
setEnable(boolean enable)
Sets enable.
|
void |
setParamContext(boolean paramContext)
Sets param context.
|
void |
setPlatform(PlatformConfig platform)
Sets platform.
|
void |
setPoint(String point)
Sets point.
|
void |
setRelyDepend(boolean relyDepend)
Sets rely depend.
|
void |
setRules(List<RuleConfig> rules)
Sets rules.
|
void |
setSplit(String split)
Sets split.
|
void |
setThreadPool(GobrsAsyncProperties.ThreadPool threadPool)
Sets thread pool.
|
void |
setTimeout(long timeout)
Sets timeout.
|
void |
setTimeoutCoreSize(Integer timeoutCoreSize)
Sets timeout core size.
|
public long getTimeout()
public void setTimeout(long timeout)
timeout - the timeoutpublic String getSplit()
public void setSplit(String split)
split - the splitpublic String getPoint()
public void setPoint(String point)
point - the pointpublic List<RuleConfig> getRules()
public void setRules(List<RuleConfig> rules)
rules - the rulespublic boolean isRelyDepend()
public void setRelyDepend(boolean relyDepend)
relyDepend - the rely dependpublic boolean isParamContext()
public void setParamContext(boolean paramContext)
paramContext - the param contextpublic GobrsAsyncProperties.ThreadPool getThreadPool()
public void setThreadPool(GobrsAsyncProperties.ThreadPool threadPool)
threadPool - the thread poolpublic boolean isEnable()
public void setEnable(boolean enable)
enable - the enablepublic Integer getTimeoutCoreSize()
public void setTimeoutCoreSize(Integer timeoutCoreSize)
timeoutCoreSize - the timeout core sizepublic PlatformConfig getPlatform()
public void setPlatform(PlatformConfig platform)
platform - the platformpublic boolean isCatchable()
public void setCatchable(boolean catchable)
catchable - the catchableCopyright © 2022. All rights reserved.