-
- }
-
- @Override
- public void mergeData(YangInstanceIdentifier path, NormalizedNode<?, ?> data) {
- incrementModificationCount();
- if(operationError == null) {
- try {
- getWriteDelegate().merge(path, data);
- } catch (Exception e) {
- operationError = e;
- }
- }
- }
-
- @Override
- public void deleteData(YangInstanceIdentifier path) {
- incrementModificationCount();
- if(operationError == null) {
- try {
- getWriteDelegate().delete(path);
- } catch (Exception e) {
- operationError = e;
- }
- }
- }
-
- @Override
- public void readData(YangInstanceIdentifier path, final SettableFuture<Optional<NormalizedNode<?, ?>>> proxyFuture) {
- Futures.addCallback(getReadDelegate().read(path), new FutureCallback<Optional<NormalizedNode<?, ?>>>() {
- @Override
- public void onSuccess(final Optional<NormalizedNode<?, ?>> result) {
- proxyFuture.set(result);
- }
-
- @Override
- public void onFailure(final Throwable t) {
- proxyFuture.setException(t);
- }
- });