Record Class AgentChange
java.lang.Object
java.lang.Record
io.fluxzero.devserver.AgentChange
public record AgentChange(AgentCursor cursor, boolean sessionChanged, boolean timedOut, List<DevLogEvent> events, List<DevProblem> activeProblems, boolean hasMore)
extends Record
Compact response from a selector-aware wait operation.
-
Constructor Summary
ConstructorsConstructorDescriptionAgentChange(AgentCursor cursor, boolean sessionChanged, boolean timedOut, List<DevLogEvent> events, List<DevProblem> activeProblems, boolean hasMore) Creates an instance of aAgentChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveProblemsrecord component.cursor()Returns the value of thecursorrecord component.final booleanIndicates whether some other object is "equal to" this one.events()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.booleanhasMore()Returns the value of thehasMorerecord component.booleanReturns the value of thesessionChangedrecord component.booleantimedOut()Returns the value of thetimedOutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentChange
public AgentChange(AgentCursor cursor, boolean sessionChanged, boolean timedOut, List<DevLogEvent> events, List<DevProblem> activeProblems, boolean hasMore) Creates an instance of aAgentChangerecord class.- Parameters:
cursor- the value for thecursorrecord componentsessionChanged- the value for thesessionChangedrecord componenttimedOut- the value for thetimedOutrecord componentevents- the value for theeventsrecord componentactiveProblems- the value for theactiveProblemsrecord componenthasMore- the value for thehasMorerecord 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. -
cursor
Returns the value of thecursorrecord component.- Returns:
- the value of the
cursorrecord component
-
sessionChanged
public boolean sessionChanged()Returns the value of thesessionChangedrecord component.- Returns:
- the value of the
sessionChangedrecord component
-
timedOut
public boolean timedOut()Returns the value of thetimedOutrecord component.- Returns:
- the value of the
timedOutrecord component
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
activeProblems
Returns the value of theactiveProblemsrecord component.- Returns:
- the value of the
activeProblemsrecord component
-
hasMore
public boolean hasMore()Returns the value of thehasMorerecord component.- Returns:
- the value of the
hasMorerecord component
-