Github user Randgalt commented on the issue:
https://github.com/apache/curator/pull/211
This new feature allows code like this:
```java
// let "client" be a CuratorFramework instance
ZPath path = ZPath.parse(...); // whatever path you need
JacksonModelSerializer<Person> serializer =
JacksonModelSerializer.build(Person.class);
ModeledAsyncCuratorFramework<MyModel> modeled =
ModeledAsyncCuratorFramework.wrap(client, path, serializer);
...
public void writePerson(String id, Person p) {
modeled.at(id).create(p); // note this is an async operation
}
public void readPerson(String id, Consumer<Person> receiver) {
modeled.at(id).read().whenComplete((person, exception) -> {
if ( exception != null ) {
...
} else {
receiver.accept(person);
}
});
}
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---