本文整理汇总了Java中io.bootique.annotation.BQConfigProperty类的典型用法代码示例。如果您正苦于以下问题:Java BQConfigProperty类的具体用法?Java BQConfigProperty怎么用?Java BQConfigProperty使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BQConfigProperty类属于io.bootique.annotation包,在下文中一共展示了BQConfigProperty类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setExtra
import io.bootique.annotation.BQConfigProperty; //导入依赖的package包/类
@BQConfigProperty("By default all MDC parameters are sent under the Additional Data Tab. " +
"By setting \"extra\" in your configuration you can define MDC keys to send as tags instead of " +
"including them in Additional Data. " +
"This allows them to be filtered within Sentry. Example: extra1:value1,extra2:value2")
public void setExtra(Map<String, String> extra) {
this.extra = extra;
}
示例2: setDependsOn
import io.bootique.annotation.BQConfigProperty; //导入依赖的package包/类
@BQConfigProperty("List of dependencies, that should be run prior to the current job." +
" May include names of both standalone jobs and job groups." +
" Note that the order of execution of dependencies may be different from the order, in which they appear in this list." +
" If you'd like the dependencies to be executed in a particular order, consider creating an explicit job group.")
public void setDependsOn(List<String> dependsOn) {
this.dependsOn = Optional.of(dependsOn);
}
示例3: setLogFormat
import io.bootique.annotation.BQConfigProperty; //导入依赖的package包/类
/**
* @param logFormat Log format specification used by all appenders unless redefined for a given appender.
* @since 0.25
*/
@BQConfigProperty("Log format specification used by child appenders unless redefined at the appender level, or not " +
"relevant for a given type of appender. The spec is " +
"compatible with Logback framework. The default is '%-5p [%d{ISO8601,UTC}] %thread %c{20}: %m%n%rEx'")
public void setLogFormat(String logFormat) {
this.logFormat = logFormat;
}
示例4: setIdleTimeout
import io.bootique.annotation.BQConfigProperty; //导入依赖的package包/类
@BQConfigProperty
public void setIdleTimeout(long idleTimeoutMs) {
if (idleTimeoutMs < 0) {
throw new IllegalArgumentException("idleTimeout cannot be negative");
}
this.idleTimeout = idleTimeoutMs;
}
示例5: setMaximumPoolSize
import io.bootique.annotation.BQConfigProperty; //导入依赖的package包/类
@BQConfigProperty
public void setMaximumPoolSize(int maxPoolSize) {
if (maxPoolSize < 1) {
throw new IllegalArgumentException("maxPoolSize cannot be less than 1");
}
this.maxPoolSize = maxPoolSize;
}
示例6: setValidationTimeout
import io.bootique.annotation.BQConfigProperty; //导入依赖的package包/类
@BQConfigProperty
public void setValidationTimeout(long validationTimeoutMs) {
if (validationTimeoutMs < 250) {
throw new IllegalArgumentException("validationTimeout cannot be less than 250ms");
}
this.validationTimeout = validationTimeoutMs;
}
示例7: setReporters
import io.bootique.annotation.BQConfigProperty; //导入依赖的package包/类
@BQConfigProperty("A List of reporter factories.")
public void setReporters(List<ReporterFactory> reporters) {
this.reporters = reporters;
}
示例8: setHealthChecks
import io.bootique.annotation.BQConfigProperty; //导入依赖的package包/类
@BQConfigProperty
public void setHealthChecks(List<String> healthChecks) {
this.healthChecks = healthChecks;
}
示例9: setThreadPoolSize
import io.bootique.annotation.BQConfigProperty; //导入依赖的package包/类
@BQConfigProperty
public void setThreadPoolSize(int threadPoolSize) {
this.threadPoolSize = threadPoolSize;
}
示例10: setFixedDelayMs
import io.bootique.annotation.BQConfigProperty; //导入依赖的package包/类
@BQConfigProperty
public void setFixedDelayMs(long fixedDelayMs) {
this.fixedDelayMs = fixedDelayMs;
}
示例11: setInitialDelayMs
import io.bootique.annotation.BQConfigProperty; //导入依赖的package包/类
@BQConfigProperty
public void setInitialDelayMs(long initialDelayMs) {
this.initialDelayMs = initialDelayMs;
}
示例12: setHealthCheckTimeoutMs
import io.bootique.annotation.BQConfigProperty; //导入依赖的package包/类
@BQConfigProperty
public void setHealthCheckTimeoutMs(long healthCheckTimeoutMs) {
this.healthCheckTimeoutMs = healthCheckTimeoutMs;
}
示例13: setUsers
import io.bootique.annotation.BQConfigProperty; //导入依赖的package包/类
@BQConfigProperty("A map of user account names to user password and roles. The values should be in the format "
+ "used by the [users] section of a Shiro .ini file. Namely 'password, roleName1, roleName2, …, roleNameN'.")
public void setUsers(Map<String, String> users) {
this.users = users;
}
示例14: setRoles
import io.bootique.annotation.BQConfigProperty; //导入依赖的package包/类
@BQConfigProperty("A map of role names to role permissions. The values should be in the format used by the [roles] "
+ "section of a Shiro .ini file. Namely 'permissionDefinition1, permissionDefinition2, ..., "
+ "permissionDefinitionN'.")
public void setRoles(Map<String, String> roles) {
this.roles = roles;
}
示例15: setRealms
import io.bootique.annotation.BQConfigProperty; //导入依赖的package包/类
@BQConfigProperty
public void setRealms(List<RealmFactory> realms) {
this.realms = realms;
}