Switch CompositeModification to bypass thread-local streams
[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 package org.opendaylight.controller.cluster.datastore.modification;
9
10 import java.util.List;
11
12 /**
13  * CompositeModification contains a list of modifications that need to be applied to the DOMStore.
14  *
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  */
19 public interface CompositeModification extends Modification {
20     /**
21      * Get a list of modifications contained by this composite.
22      *
23      * @return an immutable list of modifications
24      */
25     List<Modification> getModifications();
26 }