X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fbinding%2Fapi%2Fdata%2FDataModificationTransaction.java;h=7e72bd488fdc9789037b351e29c6204211fe93ec;hb=refs%2Fchanges%2F83%2F48683%2F4;hp=719063832314cfa069121fb92d79c62165439424;hpb=589b6309f5356e92b10a66ccc0fc302b0289dbd0;p=controller.git diff --git a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/data/DataModificationTransaction.java b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/data/DataModificationTransaction.java index 7190638323..7e72bd488f 100644 --- a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/data/DataModificationTransaction.java +++ b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/data/DataModificationTransaction.java @@ -9,29 +9,35 @@ package org.opendaylight.controller.sal.binding.api.data; import java.util.EventListener; import java.util.concurrent.Future; - import org.opendaylight.controller.md.sal.common.api.TransactionStatus; -import org.opendaylight.controller.md.sal.common.api.data.DataCommitHandler; import org.opendaylight.controller.md.sal.common.api.data.DataModification; import org.opendaylight.yangtools.concepts.ListenerRegistration; import org.opendaylight.yangtools.yang.binding.DataObject; import org.opendaylight.yangtools.yang.binding.InstanceIdentifier; import org.opendaylight.yangtools.yang.common.RpcResult; -public interface DataModificationTransaction extends DataModification, DataObject> { - +/** + * @deprecated Replaced by more specific transaction types. Please use + * {@link org.opendaylight.controller.md.sal.binding.api.DataBroker#newReadOnlyTransaction()}, + * {@link org.opendaylight.controller.md.sal.binding.api.DataBroker#newReadWriteTransaction()} + * or + * {@link org.opendaylight.controller.md.sal.binding.api.DataBroker#newWriteOnlyTransaction()}. + */ +@Deprecated +public interface DataModificationTransaction extends + DataModification, DataObject> { /** * Returns an unique identifier for transaction * */ @Override - public Object getIdentifier(); + Object getIdentifier(); /** * Initiates a two-phase commit of candidate data. * *

- * The {@link Consumer} could initiate a commit of candidate data + * The Consumer could initiate a commit of candidate data * *

* The successful commit changes the state of the system and may affect @@ -39,22 +45,16 @@ public interface DataModificationTransaction extends DataModification * The effects of successful commit of data are described in the - * specifications and YANG models describing the {@link Provider} components - * of controller. It is assumed that {@link Consumer} has an understanding + * specifications and YANG models describing the Provider components + * of controller. It is assumed that the Consumer has an understanding * of this changes. * * - * @see DataCommitHandler for further information how two-phase commit is - * processed. - * @param store - * Identifier of the store, where commit should occur. * @return Result of the commit, containing success information or list of * encountered errors, if commit was not successful. */ @Override - public Future> commit(); - - + Future> commit(); /** * Register a listener for transaction @@ -64,14 +64,10 @@ public interface DataModificationTransaction extends DataModification registerListener(DataTransactionListener listener); - - /** * Listener for transaction state changes - * - * */ - public interface DataTransactionListener extends EventListener { + interface DataTransactionListener extends EventListener { /** * Callback is invoked after each transaction status change. *