*/
package org.opendaylight.controller.cluster.datastore;
-import org.opendaylight.controller.sal.core.spi.data.DOMStoreWriteTransaction;
+import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.jdt.annotation.Nullable;
+import org.opendaylight.mdsal.dom.spi.store.DOMStoreWriteTransaction;
/**
* Interface for a class that can "ready" a transaction.
* @author Thomas Pantelis
*/
interface LocalTransactionReadySupport {
- LocalThreePhaseCommitCohort onTransactionReady(DOMStoreWriteTransaction tx);
+ LocalThreePhaseCommitCohort onTransactionReady(@NonNull DOMStoreWriteTransaction tx,
+ @Nullable Exception operationError);
}