Record Class ManagedDependencyBreaker.Status
java.lang.Object
java.lang.Record
org.j7m.middleware.application.components.ManagedDependencyBreaker.Status
- Record Components:
phase- current circuit statefailures- consecutive failed logical connection callsactiveProbes- actual unfinished readonly probes, including older state generations
- Enclosing class:
ManagedDependencyBreaker
public static record ManagedDependencyBreaker.Status(ManagedDependencyBreaker.Phase phase, int failures, int activeProbes)
extends Record
Immutable host diagnostic snapshot, with no application arguments or principal data.
-
Constructor Summary
ConstructorsConstructorDescriptionStatus(ManagedDependencyBreaker.Phase phase, int failures, int activeProbes) Creates an instance of aStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveProbesrecord component.final booleanIndicates whether some other object is "equal to" this one.intfailures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.phase()Returns the value of thephaserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Status
Creates an instance of aStatusrecord class.- Parameters:
phase- the value for thephaserecord componentfailures- the value for thefailuresrecord componentactiveProbes- the value for theactiveProbesrecord component
-
-
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. -
phase
-
failures
-
activeProbes
public int activeProbes()Returns the value of theactiveProbesrecord component.- Returns:
- the value of the
activeProbesrecord component
-