io.openlineage.client.circuitBreaker.JavaRuntimeCircuitBreakerConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openlineage-java Show documentation
Show all versions of openlineage-java Show documentation
Java library for OpenLineage
/*
/* Copyright 2018-2024 contributors to the OpenLineage project
/* SPDX-License-Identifier: Apache-2.0
*/
package io.openlineage.client.circuitBreaker;
import static io.openlineage.client.circuitBreaker.CircuitBreaker.CIRCUIT_CHECK_INTERVAL_IN_MILLIS;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.With;
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EqualsAndHashCode
@With
public final class JavaRuntimeCircuitBreakerConfig implements CircuitBreakerConfig {
@Getter @Setter private Integer memoryThreshold = 20;
@Getter @Setter private Integer gcCpuThreshold = 10;
@Getter @Setter private Integer circuitCheckIntervalInMillis = CIRCUIT_CHECK_INTERVAL_IN_MILLIS;
public JavaRuntimeCircuitBreakerConfig(int memoryThreshold, int gcCpuThreshold) {
this(memoryThreshold, gcCpuThreshold, CIRCUIT_CHECK_INTERVAL_IN_MILLIS);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy