* A component/application may also register interest in the ownership status of an Entity. The listener would be
* notified whenever the ownership status changes.
* </p>
+ *
+ * @deprecated Use org.opendaylight.mdsal.binding.api.clustering.EntityOwnershipService or
+ * org.opendaylight.mdsal.dom.api.clustering.DOMEntityOwnershipService instead
*/
+@Deprecated
public interface EntityOwnershipService {
/**
* @return an Optional EntityOwnershipState whose instance is present if the entity is found
*/
Optional<EntityOwnershipState> getOwnershipState(@Nonnull Entity forEntity);
+
+ /**
+ * Check if a local candidate is registered for the given entity
+ *
+ * @param entity
+ * @return true if a candidate was registered locally, false otherwise
+ */
+ boolean isCandidateRegistered(@Nonnull Entity entity);
}