Class AbstractRestClient

java.lang.Object
com.influxdb.internal.AbstractRestClient
Direct Known Subclasses:
AbstractInfluxDBClient, AbstractQueryApi, AbstractWriteBlockingClient, AbstractWriteClient, DeleteApiImpl, WriteReactiveApiImpl

public abstract class AbstractRestClient extends Object
Author:
Jakub Bednar (bednar@github) (04/10/2018 07:50)
  • Constructor Details

    • AbstractRestClient

      public AbstractRestClient()
  • Method Details

    • execute

      protected <T> T execute(@Nonnull retrofit2.Call<T> call) throws InfluxException
      Throws:
      InfluxException
    • toInfluxException

      @Nonnull protected InfluxException toInfluxException(@Nonnull Throwable throwable)
    • responseToError

      @Nonnull protected InfluxException responseToError(@Nonnull retrofit2.Response<?> response)
    • setLogLevel

      protected void setLogLevel(@Nonnull okhttp3.logging.HttpLoggingInterceptor interceptor, @Nonnull LogLevel logLevel)
    • getLogLevel

      @Nonnull protected LogLevel getLogLevel(@Nonnull okhttp3.logging.HttpLoggingInterceptor interceptor)
    • ping

      @Nonnull protected Boolean ping(@Nonnull retrofit2.Call<okhttp3.ResponseBody> responseBody)
    • version

      @Nonnull protected String version(@Nonnull retrofit2.Call<okhttp3.ResponseBody> ping)