Record Class BottleneckDetector.Bottleneck
java.lang.Object
java.lang.Record
com.tnsai.coordination.observability.BottleneckDetector.Bottleneck
- Record Components:
agentId- agent or edge identifier involvedtype- bottleneck typeseverity- severity score (0.0 to 1.0, higher is more severe)description- human-readable description
- Enclosing class:
BottleneckDetector
public static record BottleneckDetector.Bottleneck(String agentId, BottleneckDetector.BottleneckType type, double severity, String description)
extends Record
A detected bottleneck in the agent interaction graph.
-
Constructor Summary
ConstructorsConstructorDescriptionBottleneck(String agentId, BottleneckDetector.BottleneckType type, double severity, String description) Creates a Bottleneck with validation. -
Method Summary
Modifier and TypeMethodDescriptionagentId()Returns the value of theagentIdrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleseverity()Returns the value of theseverityrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Bottleneck
public Bottleneck(String agentId, BottleneckDetector.BottleneckType type, double severity, String description) Creates a Bottleneck with validation.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
agentId
Returns the value of theagentIdrecord component.- Returns:
- the value of the
agentIdrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
severity
public double severity()Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-