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
8 package org.opendaylight.controller.cluster.sharding;
10 import com.google.common.annotations.Beta;
11 import java.util.concurrent.CompletionStage;
14 * Registration of the CDS shard that allows you to remove the shard from the system by closing the registration.
15 * This removal is done asynchronously.
18 public interface DistributedShardRegistration {
21 * Removes the shard from the system, this removal is done asynchronously, the future completes once the
22 * backend shard is no longer present.
24 CompletionStage<Void> close();