9fc53a867c49bae51507eb63f22f7fa6cf2c0a31
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / LocalTransactionReadySupport.java
1 /*
2  * Copyright (c) 2015 Brocade Communications Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.datastore;
9
10 import javax.annotation.Nonnull;
11 import javax.annotation.Nullable;
12 import org.opendaylight.mdsal.dom.spi.store.DOMStoreWriteTransaction;
13
14 /**
15  * Interface for a class that can "ready" a transaction.
16  *
17  * @author Thomas Pantelis
18  */
19 interface LocalTransactionReadySupport {
20     LocalThreePhaseCommitCohort onTransactionReady(@Nonnull DOMStoreWriteTransaction tx,
21             @Nullable Exception operationError);
22 }