Inject MD_SAL services directly in sal-binding-it tests
[controller.git] / opendaylight / md-sal / sal-common-api / src / main / java / org / opendaylight / controller / md / sal / common / api / clustering / EntityOwnershipCandidateRegistration.java
index c3c43d92ba481c963cc91a257e7b6fa259b5c778..487b19251b247a1e2da912aa57b555837b851bce 100644 (file)
@@ -8,23 +8,22 @@
 
 package org.opendaylight.controller.md.sal.common.api.clustering;
 
-import javax.annotation.Nonnull;
 import org.opendaylight.yangtools.concepts.ObjectRegistration;
 
 /**
  * An EntityOwnershipCandidateRegistration records a request to register a Candidate for a given Entity. Calling
  * close on the EntityOwnershipCandidateRegistration will remove the Candidate from any future ownership considerations
- * for that Entity and will also remove it as a Listener for ownership status changes.
+ * for that Entity.
+ *
+ * @deprecated Use org.opendaylight.mdsal.binding.api.clustering.EntityOwnershipCandidateRegistration
+ *             or org.opendaylight.mdsal.dom.api.clustering.DOMEntityOwnershipCandidateRegistration instead
  */
-public interface EntityOwnershipCandidateRegistration extends ObjectRegistration<EntityOwnershipCandidate> {
-   /**
-    * Returns the entity that the listener was registered for
-    */
-    @Nonnull Entity getEntity();
+@Deprecated
+public interface EntityOwnershipCandidateRegistration extends ObjectRegistration<Entity> {
 
-   /**
-    * Unregister the listener
-    */
-   @Override
-   void close();
+    /**
+     * Unregister the candidate.
+     */
+    @Override
+    void close();
 }