org.skife.config.Config类的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(142)

本文整理了Java中org.skife.config.Config类的一些代码示例,展示了Config类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Config类的具体详情如下:
包路径:org.skife.config.Config
类名称:Config

Config介绍

暂无

代码示例

代码示例来源:origin: killbill/killbill

@Config("org.killbill.payment.globalLock.retries")
  @Default("50")
  @Description("Maximum number of times the system will retry to grab global lock (with a 100ms wait each time)")
  int getMaxGlobalLockRetries();
}

代码示例来源:origin: apache/incubator-druid

@Config({"org.apache.druid.java.util.metrics.emitter.period", "com.metamx.druid.emitter.period"})
 @Default("PT60s")
 public abstract Duration getEmitterPeriod();
}

代码示例来源:origin: apache/incubator-druid

@Override
@Config(value = "${base_path}.numThreads")
public int getNumThreadsConfigured()
{
 return DEFAULT_NUM_THREADS;
}

代码示例来源:origin: killbill/killbill

@Config("org.killbill.jaxrs.location.host")
  @DefaultNull
  @Description("Base host address to use for redirect URLs")
  String getJaxrsLocationHost();
}

代码示例来源:origin: killbill/killbill

private String getCachedValue(final Config annotation, final InternalTenantContext tenantContext) {
  final PerTenantConfig perTenantConfig = cacheConfig.getPerTenantConfig(tenantContext);
  for (final String propertyName : annotation.value()) {
    final String result = perTenantConfig.get(propertyName);
    if (result != null) {
      return result;
    }
  }
  return null;
}

代码示例来源:origin: apache/incubator-druid

@Config(value = "${base_path}.formatString")
@Default("processing-%s")
public abstract String getFormatString();

代码示例来源:origin: apache/incubator-druid

@Config("druid.coordinator.loadqueuepeon.http.batchSize")
 public int getHttpLoadQueuePeonBatchSize()
 {
  return 1;
 }
}

代码示例来源:origin: killbill/killbill

@Config("org.killbill.payment.provider.default")
// See ExternalPaymentProviderPlugin.PLUGIN_NAME
@Default("__external_payment__")
@Description("Default payment provider to use")
String getDefaultPaymentProvider();

代码示例来源:origin: apache/incubator-druid

@Config("druid.coordinator.period")
@Default("PT60s")
public abstract Duration getCoordinatorPeriod();

代码示例来源:origin: apache/incubator-druid

/**
  * Returns the number of threads _explicitly_ configured, or -1 if it is not explicitly configured, that is not
  * a valid number of threads. To get the configured value or the default (valid) number, use {@link #getNumThreads()}.
  * This method exists for ability to distinguish between the default value set when there is no explicit config, and
  * an explicitly configured value.
  */
 @Config(value = "${base_path}.numThreads")
 public int getNumThreadsConfigured()
 {
  return DEFAULT_NUM_THREADS;
 }
}

代码示例来源:origin: killbill/killbill

@Config("org.killbill.security.okta.permissionsByGroup")
  @Default("admin = *:*\n" +
       "finance = invoice:*, payment:*\n" +
       "support = entitlement:*, invoice:item_adjust")
  @Description("Okta permissions by Okta group")
  public String getShiroOktaPermissionsByGroup();
}

代码示例来源:origin: apache/incubator-druid

@Config("druid.coordinator.period.indexingPeriod")
@Default("PT1800s")
public abstract Duration getCoordinatorIndexingPeriod();

代码示例来源:origin: apache/incubator-druid

@Config({"druid.computation.buffer.poolCacheMaxCount", "${base_path}.buffer.poolCacheMaxCount"})
public int poolCacheMaxCount()
{
 return Integer.MAX_VALUE;
}

代码示例来源:origin: killbill/killbill

@Config("org.killbill.catalog.uri")
  @Default("SpyCarBasic.xml")
  @Description("Default Catalog location, either in the classpath or in the filesystem. For multi-tenancy, one should use APIs to load per-tenant catalog")
  String getCatalogURI();
}

代码示例来源:origin: apache/incubator-druid

@Config("druid.coordinator.startDelay")
@Default("PT300s")
public abstract Duration getCoordinatorStartDelay();

代码示例来源:origin: apache/incubator-druid

/**
 * Returns the number of merge buffers _explicitly_ configured, or -1 if it is not explicitly configured, that is not
 * a valid number of buffers. To get the configured value or the default (valid) number, use {@link
 * #getNumMergeBuffers()}. This method exists for ability to distinguish between the default value set when there is
 * no explicit config, and an explicitly configured value.
 */
@Config("${base_path}.numMergeBuffers")
public int getNumMergeBuffersConfigured()
{
 return DEFAULT_NUM_MERGE_BUFFERS;
}

代码示例来源:origin: killbill/killbill

@Config("org.killbill.security.ldap.permissionsByGroup")
@Default("admin = *:*\n" +
     "finance = invoice:*, payment:*\n" +
     "support = entitlement:*, invoice:item_adjust")
@Description("LDAP permissions by LDAP group")
public String getShiroLDAPPermissionsByGroup();

代码示例来源:origin: apache/incubator-druid

@Config("druid.coordinator.kill.period")
@Default("P1D")
public abstract Duration getCoordinatorKillPeriod();

代码示例来源:origin: apache/incubator-druid

@Config("druid.coordinator.console.static")
public String getConsoleStatic()
{
 return null;
}

代码示例来源:origin: killbill/killbill

@Config("org.killbill.template.invoiceFormatterFactoryClass")
  @Default("org.killbill.billing.invoice.template.formatters.DefaultInvoiceFormatterFactory")
  @Description("Invoice formatter class")
  Class<? extends InvoiceFormatterFactory> getInvoiceFormatterFactoryClass();
}

相关文章