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;
/**
* @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.
* @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
* @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.
* {@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);
}