Class AbstractWriteClient

java.lang.Object
com.influxdb.internal.AbstractRestClient
com.influxdb.client.internal.AbstractWriteClient
All Implemented Interfaces:
AutoCloseable

public abstract class AbstractWriteClient extends AbstractRestClient implements AutoCloseable
Author:
Jakub Bednar (bednar@github) (21/11/2018 09:26)
  • Field Details

  • Constructor Details

  • Method Details

    • addEventListener

      @Nonnull protected <T extends AbstractWriteEvent> io.reactivex.rxjava3.core.Observable<T> addEventListener(@Nonnull Class<T> eventType)
    • flush

      public void flush()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • writePoints

      public void writePoints(@Nonnull WriteParameters writeParameters, @Nonnull io.reactivex.rxjava3.core.Flowable<AbstractWriteClient.BatchWriteDataPoint> stream)
    • write

      public void write(@Nonnull WriteParameters writeParameters, @Nonnull org.reactivestreams.Publisher<AbstractWriteClient.BatchWriteData> stream)
    • jitter

      @Nonnull public static <T> io.reactivex.rxjava3.core.FlowableTransformer<T,T> jitter(@Nonnull io.reactivex.rxjava3.core.Scheduler scheduler, @Nonnull WriteApi.RetryOptions retryOptions)
      Add Jitter delay to upstream.
      Type Parameters:
      T - upstream type
      Parameters:
      scheduler - to use for timer operator
      retryOptions - with configured jitter interval
      Returns:
      Flowable with jitter delay
    • retry

      @Nonnull public static io.reactivex.rxjava3.functions.Function<io.reactivex.rxjava3.core.Flowable<Throwable>,org.reactivestreams.Publisher<?>> retry(@Nonnull io.reactivex.rxjava3.core.Scheduler retryScheduler, @Nonnull WriteApi.RetryOptions retryOptions, @Nonnull BiConsumer<Throwable,Long> notify)
      Add Retry handler to upstream.
      Parameters:
      retryScheduler - for retry delay
      retryOptions - with configured retry strategy
      notify - to notify about retryable error
      Returns:
      Flowable with retry handler