diff options
Diffstat (limited to 'vespa-http-client')
11 files changed, 19 insertions, 4 deletions
diff --git a/vespa-http-client/pom.xml b/vespa-http-client/pom.xml index eefb07d4ece..b25f54362ed 100644 --- a/vespa-http-client/pom.xml +++ b/vespa-http-client/pom.xml @@ -151,9 +151,9 @@ <artifactId>maven-compiler-plugin</artifactId> <configuration> <release>${vespaClients.jdk.releaseVersion}</release> - <showDeprecation>true</showDeprecation> <compilerArgs> <arg>-Xlint:all</arg> + <arg>-Xlint:-deprecation</arg> <arg>-Xlint:-serial</arg> <arg>-Werror</arg> </compilerArgs> diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedClient.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedClient.java index 0b16f37744a..d9ff09552ef 100644 --- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedClient.java +++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedClient.java @@ -21,7 +21,9 @@ import java.util.concurrent.atomic.AtomicInteger; * * @author dybis * @see FeedClientFactory + * @deprecated Vespa-http-client will be removed in Vespa 8. It's replaced by <a href="https://docs.vespa.ai/en/vespa-feed-client.html">vespa-feed-client</a> */ +@Deprecated public interface FeedClient extends AutoCloseable { /** diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedClientFactory.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedClientFactory.java index 842cf503f3a..ce2f9e0b140 100644 --- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedClientFactory.java +++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedClientFactory.java @@ -14,7 +14,9 @@ import java.util.concurrent.ThreadFactory; * Factory for creating FeedClient. * * @author dybis + * @deprecated Vespa-http-client will be removed in Vespa 8. It's Vespa-http-client will be removed in Vespa 8. It's replaced by <a href="https://docs.vespa.ai/en/vespa-feed-client.html">vespa-feed-client</a> */ +@Deprecated public class FeedClientFactory { /** diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedConnectException.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedConnectException.java index c2f3bb089c5..822a670ae08 100644 --- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedConnectException.java +++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedConnectException.java @@ -7,7 +7,9 @@ import com.yahoo.vespa.http.client.config.Endpoint; * An exception thrown when the client is unable to connect to a feed endpoint. * * @author bjorncs + * @deprecated Vespa-http-client will be removed in Vespa 8. It's replaced by <a href="https://docs.vespa.ai/en/vespa-feed-client.html">vespa-feed-client</a> */ +@Deprecated public class FeedConnectException extends FeedEndpointException { public FeedConnectException(Throwable cause, Endpoint endpoint) { diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedEndpointException.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedEndpointException.java index b696864749c..304e2ea321b 100644 --- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedEndpointException.java +++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedEndpointException.java @@ -9,7 +9,9 @@ import com.yahoo.vespa.http.client.config.Endpoint; * @see FeedConnectException * @see FeedProtocolException * @author bjorncs + * @deprecated Vespa-http-client will be removed in Vespa 8. It's replaced by <a href="https://docs.vespa.ai/en/vespa-feed-client.html">vespa-feed-client</a> */ +@Deprecated public abstract class FeedEndpointException extends RuntimeException { private final Endpoint endpoint; diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedProtocolException.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedProtocolException.java index b428259fdf1..93041cced1c 100644 --- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedProtocolException.java +++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/FeedProtocolException.java @@ -7,7 +7,9 @@ import com.yahoo.vespa.http.client.config.Endpoint; * An exception thrown when a feed endpoint returns an error during feeding. * * @author bjorncs + * @deprecated Vespa-http-client will be removed in Vespa 8. It's replaced by <a href="https://docs.vespa.ai/en/vespa-feed-client.html">vespa-feed-client</a> */ +@Deprecated public class FeedProtocolException extends FeedEndpointException { private final int httpStatusCode; diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/Result.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/Result.java index 93a3b43c211..5db592da02f 100644 --- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/Result.java +++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/Result.java @@ -16,7 +16,9 @@ import java.util.List; * single endpoint, and a Result may wrap data for multiple endpoints. * * @author Einar M R Rosenvinge + * @deprecated Vespa-http-client will be removed in Vespa 8. It's replaced by <a href="https://docs.vespa.ai/en/vespa-feed-client.html">vespa-feed-client</a> */ +@Deprecated public class Result { public enum ResultType { diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/Session.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/Session.java index 8c79aa90517..203f2d3b462 100644 --- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/Session.java +++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/Session.java @@ -15,7 +15,7 @@ import java.util.concurrent.BlockingQueue; * * @author Einar M R Rosenvinge * @see SessionFactory - * @deprecated use either FeedClient or SyncFeedClient // TODO: Remove on Vespa 8 + * @deprecated Vespa-http-client will be removed in Vespa 8. It's replaced by <a href="https://docs.vespa.ai/en/vespa-feed-client.html">vespa-feed-client</a> */ @Deprecated public interface Session extends AutoCloseable { diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SessionFactory.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SessionFactory.java index 159a4e78289..ef231ccc713 100644 --- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SessionFactory.java +++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SessionFactory.java @@ -14,7 +14,7 @@ import java.util.concurrent.ThreadFactory; * Factory for creating {@link Session} instances. * * @author Einar M R Rosenvinge - * @deprecated use either FeedClient or SyncFeedClient // TODO: Remove on Vespa 8 + * @deprecated Vespa-http-client will be removed in Vespa 8. It's replaced by <a href="https://docs.vespa.ai/en/vespa-feed-client.html">vespa-feed-client</a> */ @Deprecated public final class SessionFactory { diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SimpleLoggerResultCallback.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SimpleLoggerResultCallback.java index eba7fbef483..e03bfd2b816 100644 --- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SimpleLoggerResultCallback.java +++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SimpleLoggerResultCallback.java @@ -1,7 +1,6 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.http.client; -import java.io.PrintStream; import java.time.Duration; import java.time.Instant; import java.util.Date; @@ -15,7 +14,9 @@ import java.util.concurrent.atomic.AtomicInteger; * std err as well. * * @author dybis + * @deprecated Vespa-http-client will be removed in Vespa 8. It's replaced by <a href="https://docs.vespa.ai/en/vespa-feed-client.html">vespa-feed-client</a> */ +@Deprecated public class SimpleLoggerResultCallback implements FeedClient.ResultCallback { private final Object monitor = new Object(); diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SyncFeedClient.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SyncFeedClient.java index b8bd6ddeea5..2fc63bbbcc5 100644 --- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SyncFeedClient.java +++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SyncFeedClient.java @@ -19,7 +19,9 @@ import java.util.concurrent.ThreadLocalRandom; * (but it can and should be reused for multiple subsequent synchronous calls). * * @author bratseth + * @deprecated Vespa-http-client will be removed in Vespa 8. It's replaced by <a href="https://docs.vespa.ai/en/vespa-feed-client.html">vespa-feed-client</a> */ +@Deprecated public class SyncFeedClient implements AutoCloseable { private final FeedClient wrappedClient; |