Bump versions to 4.0.0-SNAPSHOT
[controller.git] / opendaylight / md-sal / cds-dom-api / src / main / java / org / opendaylight / controller / cluster / dom / api / CDSShardAccess.java
index d08b99a50f88b8e8c5432ec2bffed2e00fb7fd4c..12303935e0bd57dc4065d168866b0d06e13c8032 100644 (file)
@@ -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;
 
 /**
@@ -19,6 +19,7 @@ import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
  * @author Robert Varga
  */
 @Beta
+@Deprecated(forRemoval = true)
 public interface CDSShardAccess {
     /**
      * Return the shard identifier.
@@ -27,7 +28,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 +37,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 +57,7 @@ public interface CDSShardAccess {
      * @throws IllegalStateException if the {@link CDSDataTreeProducer} from which the associated
      *         {@link CDSDataTreeProducer} is no longer valid.
      */
-    @Nonnull CompletionStage<Void> makeLeaderLocal();
+    @NonNull CompletionStage<Void> makeLeaderLocal();
 
     /**
      * Register a listener to shard location changes. Each listener object can be registered at most once.
@@ -68,6 +69,6 @@ public interface CDSShardAccess {
      *         {@link CDSDataTreeProducer} is no longer valid.
      * @throws NullPointerException if listener is null.
      */
-    @Nonnull <L extends LeaderLocationListener> LeaderLocationListenerRegistration<L> registerLeaderLocationListener(
-            @Nonnull L listener);
+    @NonNull <L extends LeaderLocationListener> LeaderLocationListenerRegistration<L> registerLeaderLocationListener(
+            @NonNull L listener);
 }