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 java.util.EventListener;
11 import org.eclipse.jdt.annotation.NonNull;
14 * Listener for shard leader location changes.
16 public interface LeaderLocationListener extends EventListener {
18 * Invoked when shard leader location changes.
20 * @param location Current leader location as known by the local node.
22 void onLeaderLocationChanged(@NonNull LeaderLocation location);