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

栏目: 软件资讯 · 发布时间: 7年前

内容简介:来自 Netflix 的配置管理 API 项目 Archaius 发布了 2.3.13 版本,该版本只是修改了 Gradle 的构建脚本,没有其他的 Bug 修复或者是改进。 Archaius 是一个统一的配置管理 API,可支持从包括:文件、URLs、JDBC ...

来自 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);

【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上所述就是小编给大家介绍的《Archaius v2.3.13 发布,Netflix 的配置管理 API》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Data Structures and Algorithms in Java

Data Structures and Algorithms in Java

Robert Lafore / Sams / 2002-11-06 / USD 64.99

Data Structures and Algorithms in Java, Second Edition is designed to be easy to read and understand although the topic itself is complicated. Algorithms are the procedures that software programs use......一起来看看 《Data Structures and Algorithms in Java》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试