2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.controller.cluster.sharding.messages;
11 import com.google.common.base.Preconditions;
12 import org.opendaylight.controller.cluster.sharding.ShardedDataTreeActor;
13 import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
16 * Sent to the local {@link ShardedDataTreeActor} to notify of a shard removal on the local node. The local actor
17 * should then notify the remote nodes of the Removal with {@link PrefixShardRemoved} message.
19 public class RemovePrefixShard {
21 private final DOMDataTreeIdentifier prefix;
23 public RemovePrefixShard(final DOMDataTreeIdentifier prefix) {
25 this.prefix = Preconditions.checkNotNull(prefix);
28 public DOMDataTreeIdentifier getPrefix() {