X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fmodification%2FModification.java;h=626de70ebb3140c37914befe6add92821f8120b4;hb=466078ab1dc8a8cc2981b161051f6edecd6af85a;hp=2dfcdf028785aeb5f35369b983b59e314469289f;hpb=3f2221486de63178fbfbb43508ce9466c0b23b73;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/Modification.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/Modification.java index 2dfcdf0287..626de70ebb 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/Modification.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/modification/Modification.java @@ -9,21 +9,24 @@ package org.opendaylight.controller.cluster.datastore.modification; import java.io.Externalizable; -import org.opendaylight.controller.sal.core.spi.data.DOMStoreWriteTransaction; +import org.opendaylight.mdsal.dom.spi.store.DOMStoreWriteTransaction; +import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification; /** * Represents a modification to the data store. + * *

* Simple modifications can be of type, + *

* *

- * Modifications can in turn be lumped into a single {@link org.opendaylight.controller.cluster.datastore.modification.CompositeModification} - * which can then be applied to a write transaction - *

+ * Modifications can in turn be lumped into a single + * {@link org.opendaylight.controller.cluster.datastore.modification.CompositeModification} + * which can then be applied to a write transaction. */ public interface Modification extends Externalizable { @@ -33,14 +36,18 @@ public interface Modification extends Externalizable { byte DELETE = 4; /** - * Apply the modification to the specified transaction + * Apply the modification to the specified transaction. * - * @param transaction + * @param transaction the transaction */ void apply(DOMStoreWriteTransaction transaction); - byte getType(); + /** + * Apply the modification to the specified transaction. + * + * @param transaction the transaction + */ + void apply(DataTreeModification transaction); - @Deprecated - Object toSerializable(); + byte getType(); }