readme: update usage example using latest changes to APIs
-# jetcd
+# jetcd - A Java client for etcd
-[![Build Status](https://travis-ci.org/coreos/jetcd.svg?branch=master)](https://travis-ci.org/coreos/jetcd)
+jetcd requires JDK 8 to work correctly.
-Java client for etcd v3.
+[![Build Status](https://travis-ci.org/coreos/jetcd.svg?branch=master)](https://travis-ci.org/coreos/jetcd)
## Getting started
### Usage
-```
-EtcdClient client = EtcdClientBuilder.newBuilder().endpoints("http://localhost:2379").build();
-EtcdKV kvClient = client.getKVClient();
+```java
+// create client
+Client client = ClientBuilder.newBuilder().endpoints("http://localhost:2379").build();
+KV kvClient = client.getKVClient();
-ByteString key = ByteString.copyFrom("test_key", "UTF-8");
-ByteString value = ByteString.copyFrom("test_value", "UTF-8");
+ByteSequence key = ByteSequence.fromString("test_key");
+ByteSequence value = ByteSequence.fromString("test_value");
// put the key-value
kvClient.put(key, value).get();
-// get the value
-ListenableFuture<RangeResponse> getFeature = kvClient.get(key);
-RangeResponse response = getFeature.get();
-assertEquals(response.getKvsCount(), 1);
-assertEquals(response.getKvs(0).getValue().toStringUtf8(), "test_value");
+// get the CompletableFuture
+CompletableFuture<RangeResponse> getFuture = kvClient.get(key);
+// get the value from CompletableFuture
+RangeResponse response = getFuture.get();
// delete the key
-kvClient.delete(key).get()
+DeleteRangeResponse deleteRangeResponse = kvClient.delete(key).get();
```
For full etcd v3 API, plesase refer to [API_Reference](https://github.com/coreos/etcd/blob/master/Documentation/dev-guide/api_reference_v3.md).
