X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fcds-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdom%2Fapi%2FCDSShardAccess.java;h=2051e21d64cfe5efe178d8b5387b86e94ee1fa50;hb=c4b4b98f56ab1d9821edb737912632c2867ae783;hp=d08b99a50f88b8e8c5432ec2bffed2e00fb7fd4c;hpb=212081e3f3f8b88b15e2cf1c0d6fd96cb260fe22;p=controller.git diff --git a/opendaylight/md-sal/cds-dom-api/src/main/java/org/opendaylight/controller/cluster/dom/api/CDSShardAccess.java b/opendaylight/md-sal/cds-dom-api/src/main/java/org/opendaylight/controller/cluster/dom/api/CDSShardAccess.java index d08b99a50f..2051e21d64 100644 --- a/opendaylight/md-sal/cds-dom-api/src/main/java/org/opendaylight/controller/cluster/dom/api/CDSShardAccess.java +++ b/opendaylight/md-sal/cds-dom-api/src/main/java/org/opendaylight/controller/cluster/dom/api/CDSShardAccess.java @@ -9,7 +9,7 @@ package org.opendaylight.controller.cluster.dom.api; import com.google.common.annotations.Beta; import java.util.concurrent.CompletionStage; -import javax.annotation.Nonnull; +import org.eclipse.jdt.annotation.NonNull; import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier; /** @@ -27,7 +27,7 @@ public interface CDSShardAccess { * @throws IllegalStateException if the {@link CDSDataTreeProducer} from which the associated * {@link CDSDataTreeProducer} is no longer valid. */ - @Nonnull DOMDataTreeIdentifier getShardIdentifier(); + @NonNull DOMDataTreeIdentifier getShardIdentifier(); /** * Return the shard leader location relative to the local node. @@ -36,7 +36,7 @@ public interface CDSShardAccess { * @throws IllegalStateException if the {@link CDSDataTreeProducer} from which the associated * {@link CDSDataTreeProducer} is no longer valid. */ - @Nonnull LeaderLocation getLeaderLocation(); + @NonNull LeaderLocation getLeaderLocation(); /** * Request the shard leader to be moved to the local node. The request will be evaluated against shard state and @@ -56,7 +56,7 @@ public interface CDSShardAccess { * @throws IllegalStateException if the {@link CDSDataTreeProducer} from which the associated * {@link CDSDataTreeProducer} is no longer valid. */ - @Nonnull CompletionStage makeLeaderLocal(); + @NonNull CompletionStage makeLeaderLocal(); /** * Register a listener to shard location changes. Each listener object can be registered at most once. @@ -68,6 +68,6 @@ public interface CDSShardAccess { * {@link CDSDataTreeProducer} is no longer valid. * @throws NullPointerException if listener is null. */ - @Nonnull LeaderLocationListenerRegistration registerLeaderLocationListener( - @Nonnull L listener); + @NonNull LeaderLocationListenerRegistration registerLeaderLocationListener( + @NonNull L listener); }