X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-common-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fcommon%2Fapi%2Fclustering%2FEntityOwnershipListenerRegistration.java;h=db246f847e96142210c4860dc2e137cde5b522a1;hb=0c877a510c8da62881b73ceff8b1ecdeaf3f8cd2;hp=ff9c851b1451c4e6c1a63aaf75b1d41c69902322;hpb=a48538374b8cd6617b6c8ce3adcdc9f30354a732;p=controller.git diff --git a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/clustering/EntityOwnershipListenerRegistration.java b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/clustering/EntityOwnershipListenerRegistration.java index ff9c851b14..db246f847e 100644 --- a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/clustering/EntityOwnershipListenerRegistration.java +++ b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/clustering/EntityOwnershipListenerRegistration.java @@ -8,23 +8,28 @@ package org.opendaylight.controller.md.sal.common.api.clustering; +import javax.annotation.Nonnull; import org.opendaylight.yangtools.concepts.ObjectRegistration; /** * An EntityOwnershipListenerRegistration records a request to register a ownership status change listener for a * given Entity. Calling close on the registration will unregister listeners and future ownership changes will not * be delivered to the listener. + * + * @deprecated Use org.opendaylight.mdsal.binding.api.clustering.EntityOwnershipListenerRegistration or + * org.opendaylight.mdsal.dom.api.clustering.DOMEntityOwnershipListenerRegistration instead */ +@Deprecated public interface EntityOwnershipListenerRegistration extends ObjectRegistration { /** - * - * @return the entity that the listener was registered for + * Return the entity type that the listener was registered for. */ - Entity getEntity(); + @Nonnull String getEntityType(); /** - * Unregister the listener + * Unregister the listener. */ + @Override void close(); }