Class EtcdResolverContext.Builder

Enclosing class:
EtcdResolverContext

public static class EtcdResolverContext.Builder extends ResolverContext.BuilderCommon<EtcdResolverContext.Builder>
  • Field Details

    • etcdClient

      public final io.deephaven.shadow.jetcd.io.etcd.jetcd.Client etcdClient
    • serializableEtcdGetOption

      public boolean serializableEtcdGetOption
    • watchRetryMinDelayMillis

      public long watchRetryMinDelayMillis
    • watchRetryMaxDelayMillis

      public long watchRetryMaxDelayMillis
    • watchRetryBackoffFactor

      public double watchRetryBackoffFactor
    • watchRetryJitterFactor

      public double watchRetryJitterFactor
  • Constructor Details

  • Method Details

    • setSerializableEtcdGetOption

      public EtcdResolverContext.Builder setSerializableEtcdGetOption(boolean serializableEtcdGetOption)
      Resolution is based on etcd reads via get calls. See the etcd documentation for serializable reads Etcd can perform linearizable reads (can be served only from the master) or serializable reads (can be served directly from slaves). The default is false, implying to do linearizable reads; if the etcd server connected to this client is a slave, this will require it to forward the read call to the master.
      Parameters:
      serializableEtcdGetOption - true if linearizable reads are not necessary, and thus can be traded off for lower latency.
      Returns:
      the builder object, for chaining
    • setWatchRetryMinDelayMillis

      public EtcdResolverContext.Builder setWatchRetryMinDelayMillis(long v)
    • setWatchRetryMaxDelayMillis

      public EtcdResolverContext.Builder setWatchRetryMaxDelayMillis(long v)
    • setWatchRetryBackoffFactor

      public EtcdResolverContext.Builder setWatchRetryBackoffFactor(double v)
    • setWatchRetryJitterFactor

      public EtcdResolverContext.Builder setWatchRetryJitterFactor(double v)
    • build

      public EtcdResolverContext build()