2 * Copyright (c) 2015 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.datastore;
10 import java.util.Optional;
11 import java.util.SortedSet;
12 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
13 import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification;
15 abstract class ShardDataTreeTransactionParent {
17 abstract void abortFromTransactionActor(AbstractShardDataTreeTransaction<?> transaction);
19 abstract void abortTransaction(AbstractShardDataTreeTransaction<?> transaction, Runnable callback);
21 abstract ShardDataTreeCohort finishTransaction(ReadWriteShardDataTreeTransaction transaction,
22 Optional<SortedSet<String>> participatingShardNames);
24 abstract ShardDataTreeCohort createReadyCohort(TransactionIdentifier txId, DataTreeModification mod,
25 Optional<SortedSet<String>> participatingShardNames);
27 abstract ShardDataTreeCohort createFailedCohort(TransactionIdentifier txId, DataTreeModification mod,