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.dom.api;
10 import com.google.common.annotations.Beta;
11 import java.util.EventListener;
12 import javax.annotation.Nonnull;
15 * Listener for shard leader location changes.
17 * @author Robert Varga
20 public interface LeaderLocationListener extends EventListener {
22 * Invoked when shard leader location changes.
24 * @param location Current leader location as known by the local node.
26 void onLeaderLocationChanged(@Nonnull LeaderLocation location);