All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.flyte.jflyte.utils.AutoValue_GrpcRetries Maven / Gradle / Ivy

Go to download

Primarily used by jflyte, but can also be used to extend or build a jflyte alternative

There is a newer version: 0.4.60
Show newest version
package org.flyte.jflyte.utils;

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_GrpcRetries extends GrpcRetries {

  private final int maxRetries;

  private final long maxDelayMilliseconds;

  private final long initialDelayMilliseconds;

  private final GrpcRetries.Sleeper sleeper;

  AutoValue_GrpcRetries(
      int maxRetries,
      long maxDelayMilliseconds,
      long initialDelayMilliseconds,
      GrpcRetries.Sleeper sleeper) {
    this.maxRetries = maxRetries;
    this.maxDelayMilliseconds = maxDelayMilliseconds;
    this.initialDelayMilliseconds = initialDelayMilliseconds;
    if (sleeper == null) {
      throw new NullPointerException("Null sleeper");
    }
    this.sleeper = sleeper;
  }

  @Override
  public int maxRetries() {
    return maxRetries;
  }

  @Override
  public long maxDelayMilliseconds() {
    return maxDelayMilliseconds;
  }

  @Override
  public long initialDelayMilliseconds() {
    return initialDelayMilliseconds;
  }

  @Override
  GrpcRetries.Sleeper sleeper() {
    return sleeper;
  }

  @Override
  public String toString() {
    return "GrpcRetries{"
        + "maxRetries=" + maxRetries + ", "
        + "maxDelayMilliseconds=" + maxDelayMilliseconds + ", "
        + "initialDelayMilliseconds=" + initialDelayMilliseconds + ", "
        + "sleeper=" + sleeper
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof GrpcRetries) {
      GrpcRetries that = (GrpcRetries) o;
      return this.maxRetries == that.maxRetries()
          && this.maxDelayMilliseconds == that.maxDelayMilliseconds()
          && this.initialDelayMilliseconds == that.initialDelayMilliseconds()
          && this.sleeper.equals(that.sleeper());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= maxRetries;
    h$ *= 1000003;
    h$ ^= (int) ((maxDelayMilliseconds >>> 32) ^ maxDelayMilliseconds);
    h$ *= 1000003;
    h$ ^= (int) ((initialDelayMilliseconds >>> 32) ^ initialDelayMilliseconds);
    h$ *= 1000003;
    h$ ^= sleeper.hashCode();
    return h$;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy