Class MutableCompositeModification
java.lang.Object
org.opendaylight.controller.cluster.datastore.messages.VersionedExternalizableMessage
org.opendaylight.controller.cluster.datastore.modification.MutableCompositeModification
- All Implemented Interfaces:
Externalizable,Serializable,SerializableMessage,CompositeModification,Modification
- Direct Known Subclasses:
BatchedModifications
public class MutableCompositeModification
extends VersionedExternalizableMessage
implements CompositeModification
MutableCompositeModification is just a mutable version of a CompositeModification.
- See Also:
-
Field Summary
Fields inherited from interface org.opendaylight.controller.cluster.datastore.modification.Modification
COMPOSITE, DELETE, MERGE, WRITE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModification(Modification modification) Add a new Modification to the list of Modifications represented by this composite.voidaddModifications(Iterable<Modification> newMods) voidapply(DOMStoreWriteTransaction transaction) Apply the modification to the specified transaction.voidapply(DataTreeModification transaction) Apply the modification to the specified transaction.static MutableCompositeModificationfromSerializable(Object serializable) Get a list of modifications contained by this composite.bytegetType()voidvoidvoidMethods inherited from class org.opendaylight.controller.cluster.datastore.messages.VersionedExternalizableMessage
getStreamVersion, getVersion, toSerializable, toString
-
Constructor Details
-
MutableCompositeModification
public MutableCompositeModification() -
MutableCompositeModification
public MutableCompositeModification(short version)
-
-
Method Details
-
apply
Description copied from interface:ModificationApply the modification to the specified transaction.- Specified by:
applyin interfaceModification- Parameters:
transaction- the transaction
-
apply
Description copied from interface:ModificationApply the modification to the specified transaction.- Specified by:
applyin interfaceModification- Parameters:
transaction- the transaction
-
getType
public byte getType()- Specified by:
getTypein interfaceModification
-
addModification
Add a new Modification to the list of Modifications represented by this composite.- Parameters:
modification- the modification to add.
-
addModifications
-
getModifications
Description copied from interface:CompositeModificationGet a list of modifications contained by this composite.- Specified by:
getModificationsin interfaceCompositeModification- Returns:
- an immutable list of modifications
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Specified by:
readExternalin interfaceModification- Overrides:
readExternalin classVersionedExternalizableMessage- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Specified by:
writeExternalin interfaceModification- Overrides:
writeExternalin classVersionedExternalizableMessage- Throws:
IOException
-
fromSerializable
-
writeTo
- Specified by:
writeToin interfaceModification- Throws:
IOException
-