2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.cluster.databroker;
10 import org.eclipse.jdt.annotation.Nullable;
11 import org.opendaylight.controller.cluster.databroker.actors.dds.ClientTransaction;
12 import org.opendaylight.mdsal.dom.spi.store.DOMStoreThreePhaseCommitCohort;
13 import org.opendaylight.mdsal.dom.spi.store.DOMStoreWriteTransaction;
14 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
15 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
18 * An implementation of {@link DOMStoreWriteTransaction} backed by a {@link ClientTransaction}.
20 * @author Robert Varga
22 class ClientBackedWriteTransaction extends ClientBackedTransaction<ClientTransaction>
23 implements DOMStoreWriteTransaction {
24 ClientBackedWriteTransaction(final ClientTransaction delegate, final @Nullable Throwable allocationContext) {
25 super(delegate, allocationContext);
29 public final void write(final YangInstanceIdentifier path, final NormalizedNode data) {
30 delegate().write(path, data);
34 public final void merge(final YangInstanceIdentifier path, final NormalizedNode data) {
35 delegate().merge(path, data);
39 public final void delete(final YangInstanceIdentifier path) {
40 delegate().delete(path);
44 public final DOMStoreThreePhaseCommitCohort ready() {
45 return delegate().ready();