Class InternalUnsupportedHttpClient
java.lang.Object
com.couchbase.analytics.client.java.InternalUnsupportedHttpClient
An HTTP client intended for use by other Couchbase libraries.
NOT PART OF THE PUBLIC API! This class may change without notice.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionexecute(Consumer<InternalUnsupportedHttpClient.RequestBuilder> requestCustomizer, Duration timeout) Executes an arbitrary HTTP request.executeStreaming(Consumer<InternalUnsupportedHttpClient.RequestBuilder> requestCustomizer, Duration timeout, Consumer<Row> rowAction, @Nullable Deserializer deserializer) Executes an HTTP request for an Analytics query.
-
Method Details
-
from
-
execute
public InternalUnsupportedHttpClient.Response execute(Consumer<InternalUnsupportedHttpClient.RequestBuilder> requestCustomizer, Duration timeout) Executes an arbitrary HTTP request.- Throws:
AnalyticsTimeoutException- if request times out.CancellationException- if thread is interrupted.AnalyticsException- for all other IO errors.
-
executeStreaming
public RawQueryMetadata executeStreaming(Consumer<InternalUnsupportedHttpClient.RequestBuilder> requestCustomizer, Duration timeout, Consumer<Row> rowAction, @Nullable Deserializer deserializer) Executes an HTTP request for an Analytics query.- Throws:
QueryException- if response has a non-empty "errors" field.AnalyticsTimeoutException- if request times out.CancellationException- if thread is interrupted.AnalyticsException- for all other IO errors.
-