2 * Copyright (c) 2015 Brocade Communications 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.mdsal.eos.common.api;
10 import org.eclipse.jdt.annotation.NonNull;
13 * An interface for a class that listens for entity ownership changes.
15 * @param <E> the {@link GenericEntity} type
16 * @author Thomas Pantelis
18 public interface GenericEntityOwnershipListener<E extends GenericEntity<?>> {
20 * A notification that is generated when the ownership status of an entity changes.
22 * @param ownershipChange contains the entity and its ownership change state
24 void ownershipChanged(@NonNull EntityOwnershipChange<E> ownershipChange);