Rename package in EosCommonApi
[mdsal.git] / entityownership / mdsal-eos-common-api / src / main / java / org / opendaylight / mdsal / eos / common / api / GenericEntityOwnershipListener.java
1 /*
2  * Copyright (c) 2015 Brocade Communications Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.mdsal.eos.common.api;
10
11 import org.opendaylight.yangtools.concepts.Path;
12
13 /**
14  * An interface for a class that listens for entity ownership changes.
15  *
16  * @author Thomas Pantelis
17  *
18  * @param <P> the instance identifier path type
19  * @param <C> the GenericEntityOwnershipChange type
20  */
21 public interface GenericEntityOwnershipListener<P extends Path<P>,
22         C extends GenericEntityOwnershipChange<P, ? extends GenericEntity<P>>> {
23
24     /**
25      * A notification that is generated when the ownership status of an entity changes.
26      *
27      * @param ownershipChange contains the entity and its ownership change state
28      */
29     void ownershipChanged(C ownershipChange);
30 }