Bump versions to 4.0.0-SNAPSHOT
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / sharding / messages / NotifyProducerCreated.java
1 /*
2  * Copyright (c) 2016 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.sharding.messages;
9
10 import com.google.common.annotations.Beta;
11 import com.google.common.collect.ImmutableList;
12 import java.io.Serializable;
13 import java.util.Collection;
14 import org.opendaylight.controller.cluster.sharding.ShardedDataTreeActor;
15 import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
16
17 /**
18  * Message sent to remote {@link ShardedDataTreeActor}'s when attempting
19  * to create a producer. The remote node should attempt to create a producer in the local sharding service and reply
20  * with success/failure based on the attempt result.
21  */
22 @Beta
23 @Deprecated(forRemoval = true)
24 public class NotifyProducerCreated implements Serializable {
25     private static final long serialVersionUID = 1L;
26     private final Collection<DOMDataTreeIdentifier> subtrees;
27
28     public NotifyProducerCreated(final Collection<DOMDataTreeIdentifier> subtrees) {
29         this.subtrees = ImmutableList.copyOf(subtrees);
30     }
31
32     public Collection<DOMDataTreeIdentifier> getSubtrees() {
33         return subtrees;
34     }
35 }