Record Class CircuitBreakerProfile
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.CircuitBreakerProfile
- Record Components:
failureThreshold- failed logical connect calls before opening, 1..10000openInterval- monotonic wait before readonly half-open probes, 1ms..1daymaximumHalfOpenProbes- simultaneous readonly probes, 1..64
-
Constructor Summary
ConstructorsConstructorDescriptionCircuitBreakerProfile(int failureThreshold, Duration openInterval, int maximumHalfOpenProbes) Validates finite capacities without creating threads. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefailureThresholdrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of themaximumHalfOpenProbesrecord component.Returns the value of theopenIntervalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CircuitBreakerProfile
public CircuitBreakerProfile(int failureThreshold, Duration openInterval, int maximumHalfOpenProbes) Validates finite capacities without creating threads.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
failureThreshold
public int failureThreshold()Returns the value of thefailureThresholdrecord component.- Returns:
- the value of the
failureThresholdrecord component
-
openInterval
Returns the value of theopenIntervalrecord component.- Returns:
- the value of the
openIntervalrecord component
-
maximumHalfOpenProbes
public int maximumHalfOpenProbes()Returns the value of themaximumHalfOpenProbesrecord component.- Returns:
- the value of the
maximumHalfOpenProbesrecord component
-