Bump versions to 4.0.0-SNAPSHOT
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / sharding / messages / PrefixShardRemoved.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
9 package org.opendaylight.controller.cluster.sharding.messages;
10
11 import com.google.common.annotations.Beta;
12 import java.io.Serializable;
13 import org.opendaylight.controller.cluster.sharding.ShardedDataTreeActor;
14 import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
15
16 /**
17  * Message sent to remote {@link ShardedDataTreeActor}'s when there is an attempt to remove the shard,
18  * the ShardedDataTreeActor should remove the shard from the current configuration so that the change is picked up
19  * in the backend ShardManager.
20  */
21 @Beta
22 @Deprecated(forRemoval = true)
23 public class PrefixShardRemoved implements Serializable {
24     private static final long serialVersionUID = 1L;
25
26     private final DOMDataTreeIdentifier prefix;
27
28     public PrefixShardRemoved(final DOMDataTreeIdentifier prefix) {
29         this.prefix = prefix;
30     }
31
32     public DOMDataTreeIdentifier getPrefix() {
33         return prefix;
34     }
35 }