Eliminate EntityOwnershipChange
[mdsal.git] / entityownership / mdsal-eos-common-api / src / main / java / org / opendaylight / mdsal / eos / common / api / GenericEntityOwnershipListener.java
index 9e23de619f197b71a106a197db1c2ac667ec6fd5..70494604c01a08d39f2f6e2c2cd98c50b74af39b 100644 (file)
@@ -19,7 +19,9 @@ public interface GenericEntityOwnershipListener<E extends GenericEntity<?>> {
     /**
      * A notification that is generated when the ownership status of an entity changes.
      *
-     * @param ownershipChange contains the entity and its ownership change state
+     * @param entity the entity whose ownership status changed
+     * @param change the change the entity underwent
+     * @param inJeopardy {@code true} if ownership is in jeopardy and the reported change may be inaccurate
      */
-    void ownershipChanged(@NonNull EntityOwnershipChange<E> ownershipChange);
+    void ownershipChanged(@NonNull E entity, @NonNull EntityOwnershipStateChange change, boolean inJeopardy);
 }