X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fcds-access-client%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Faccess%2Fclient%2FBackendInfoResolver.java;h=5c5cda5bae0b8f7eb2e4bb02bd827e47c234c07b;hp=fc633adaa6af4dc6e915f5528c43e28747d25ab9;hb=HEAD;hpb=2b702880c19e11be077ddcc540aeacd80ecfcaf6 diff --git a/opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/BackendInfoResolver.java b/opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/BackendInfoResolver.java index fc633adaa6..5c5cda5bae 100644 --- a/opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/BackendInfoResolver.java +++ b/opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/BackendInfoResolver.java @@ -10,7 +10,7 @@ package org.opendaylight.controller.cluster.access.client; import akka.actor.ActorRef; import java.util.concurrent.CompletionStage; import java.util.function.Consumer; -import javax.annotation.Nonnull; +import org.eclipse.jdt.annotation.NonNull; import org.opendaylight.yangtools.concepts.Registration; /** @@ -35,8 +35,7 @@ public abstract class BackendInfoResolver implements Auto * @param cookie Backend cookie * @return A {@link CompletionStage} resulting in information about the backend */ - @Nonnull - public abstract CompletionStage getBackendInfo(@Nonnull Long cookie); + public abstract @NonNull CompletionStage getBackendInfo(@NonNull Long cookie); /** * Request re-resolution of a particular backend identified by a cookie, indicating a particular information as @@ -46,8 +45,8 @@ public abstract class BackendInfoResolver implements Auto * @param staleInfo Stale backend information * @return A {@link CompletionStage} resulting in information about the backend */ - @Nonnull - public abstract CompletionStage refreshBackendInfo(@Nonnull Long cookie, @Nonnull T staleInfo); + public abstract @NonNull CompletionStage refreshBackendInfo(@NonNull Long cookie, + @NonNull T staleInfo); /** * Registers a callback to be notified when BackendInfo that may have been previously obtained is now stale and @@ -56,11 +55,9 @@ public abstract class BackendInfoResolver implements Auto * @param callback the callback that takes the backend cookie whose BackendInfo is now stale. * @return a Registration */ - @Nonnull - public abstract Registration notifyWhenBackendInfoIsStale(Consumer callback); + public abstract @NonNull Registration notifyWhenBackendInfoIsStale(Consumer callback); - @Nonnull - public abstract String resolveCookieName(Long cookie); + public abstract @NonNull String resolveCookieName(Long cookie); @Override public void close() {