皇上,还记得我吗?我就是1999年那个Linux伊甸园啊-----24小时滚动更新开源资讯,全年无休!

Archaius v2.3.13 发布,Netflix 的配置管理 API

来自 Netflix 的配置管理 API 项目 Archaius 发布了 2.3.13 版本,该版本只是修改了 Gradle 的构建脚本,没有其他的 Bug 修复或者是改进。

Archaius 是一个统一的配置管理 API,可支持从包括:文件、URLs、JDBC 以及 Amazon DynamoDB 在内的配置源中读写配置信息,提供动态类型化属性、线程安全配置操作、轮询框架、回调机制等等功能。

示例代码:

// create a property whose value is type long and use 1000 as the default 
// if the property is not defined
DynamicLongProperty timeToWait = 
  DynamicPropertyFactory.getInstance().getLongProperty("lock.waitTime", 1000);
// ...
ReentrantLock lock = ...;
// ...
// timeToWait.get() returns up-to-date value of the property
lock.tryLock(timeToWait.get(), TimeUnit.MILLISECONDS);

转自 https://www.oschina.net/news/99197/archaius-2-3-13-released