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<AgentProblemChange> problemChanges, int activeProblemCount, 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<AgentProblemChange> problemChanges, int activeProblemCount, boolean hasMore) Creates an instance of aAgentChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveProblemCountrecord 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.Returns the value of theproblemChangesrecord 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<AgentProblemChange> problemChanges, int activeProblemCount, 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 componentproblemChanges- the value for theproblemChangesrecord componentactiveProblemCount- the value for theactiveProblemCountrecord 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
-
problemChanges
Returns the value of theproblemChangesrecord component.- Returns:
- the value of the
problemChangesrecord component
-
activeProblemCount
public int activeProblemCount()Returns the value of theactiveProblemCountrecord component.- Returns:
- the value of the
activeProblemCountrecord component
-
hasMore
public boolean hasMore()Returns the value of thehasMorerecord component.- Returns:
- the value of the
hasMorerecord component
-