Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 781 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 781 Bytes

jetcd: A Java client for etcd

Build Status

Download

<dependency>
  <groupId>net.floatingsun</groupId>
  <artifactId>jetcd</artifactId>
  <version>0.3.0</version>
</dependency>

Usage

// Connects to "http://127.0.0.1:4001" by default
EtcdClient client = EtcdClientFactory.newInstance();
// Use EtcdClientFactory.newInstance(serverUrl) to override

client.setKey("hello", "world");
client.getKey("hello") // returns "world"
client.deleteKey("hello")

TODO

  • multiple servers with redirect
  • retries and better failure handling
  • better unification of 'getKey' and 'list'
  • support for watch