Bug 7901: Prevent null Modification in BatchedModifications
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / modification / CompositeModification.java
1 /*
2  * Copyright (c) 2014 Cisco 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
9 package org.opendaylight.controller.cluster.datastore.modification;
10
11 import java.util.List;
12
13 /**
14  * CompositeModification contains a list of modifications that need to be applied to the DOMStore
15  * <p>
16  * A CompositeModification gets stored in the transaction log for a Shard. During recovery when the transaction log
17  * is being replayed a DOMStoreWriteTransaction could be created and a CompositeModification could be applied to it.
18  * </p>
19  */
20 public interface CompositeModification extends Modification {
21     /**
22      * Get a list of modifications contained by this composite.
23      *
24      * @return an immutable list of modifications
25      */
26     List<Modification> getModifications();
27 }