2 * Copyright (c) 2014 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.md.sal.dom.broker.impl;
10 import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
11 import org.opendaylight.controller.md.sal.dom.api.DOMDataWriteTransaction;
12 import org.opendaylight.controller.sal.core.spi.data.DOMStoreThreePhaseCommitCohort;
13 import com.google.common.util.concurrent.CheckedFuture;
17 * Implementation prototype of commit method for
18 * {@link DOMForwardedWriteTransaction}.
21 public interface DOMDataCommitImplementation {
24 * User-supplied implementation of {@link DOMDataWriteTransaction#submit()}
27 * Callback invoked when {@link DOMDataWriteTransaction#submit()} is invoked
28 * on transaction created by this factory.
31 * Transaction on which {@link DOMDataWriteTransaction#commit()}
34 * Iteration of cohorts for subtransactions associated with
35 * commited transaction.
38 CheckedFuture<Void,TransactionCommitFailedException> submit(final DOMDataWriteTransaction transaction,
39 final Iterable<DOMStoreThreePhaseCommitCohort> cohorts);