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

io.strimzi.api.kafka.model.common.ProbeBuilder Maven / Gradle / Ivy

There is a newer version: 0.44.0
Show newest version
package io.strimzi.api.kafka.model.common;

import io.fabric8.kubernetes.api.builder.VisitableBuilder;
public class ProbeBuilder extends ProbeFluent implements VisitableBuilder{
  public ProbeBuilder() {
    this(new Probe());
  }
  
  public ProbeBuilder(ProbeFluent fluent) {
    this(fluent, new Probe());
  }
  
  public ProbeBuilder(ProbeFluent fluent,Probe instance) {
    this.fluent = fluent;
    fluent.copyInstance(instance);
  }
  
  public ProbeBuilder(Probe instance) {
    this.fluent = this;
    this.copyInstance(instance);
  }
  ProbeFluent fluent;
  
  public Probe build() {
    Probe buildable = new Probe(fluent.getInitialDelaySeconds(),fluent.getTimeoutSeconds());
    buildable.setPeriodSeconds(fluent.getPeriodSeconds());
    buildable.setSuccessThreshold(fluent.getSuccessThreshold());
    buildable.setFailureThreshold(fluent.getFailureThreshold());
    return buildable;
  }
  

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy