- public void readData(YangInstanceIdentifier path, final SettableFuture<Optional<NormalizedNode<?, ?>>> proxyFuture) {
- Futures.addCallback(delegate.read(path), new FutureCallback<Optional<NormalizedNode<?, ?>>>() {
- @Override
- public void onSuccess(Optional<NormalizedNode<?, ?>> result) {
- proxyFuture.set(result);
- }
-
- @Override
- public void onFailure(Throwable t) {
- proxyFuture.setException(t);
+ @SuppressWarnings("checkstyle:IllegalCatch")
+ public void executeModification(AbstractModification modification) {
+ incrementModificationCount();
+ if (operationError == null) {
+ try {
+ modification.apply(getWriteDelegate());
+ } catch (Exception e) {
+ operationError = e;