Record Class AgentLogPage
java.lang.Object
java.lang.Record
io.fluxzero.devserver.AgentLogPage
public record AgentLogPage(AgentCursor cursor, List<DevLogEvent> events, boolean sessionChanged, boolean hasMore)
extends Record
Bounded structured log delta for one session-aware cursor.
-
Constructor Summary
ConstructorsConstructorDescriptionAgentLogPage(AgentCursor cursor, List<DevLogEvent> events, boolean sessionChanged, boolean hasMore) Creates an instance of aAgentLogPagerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncursor()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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentLogPage
public AgentLogPage(AgentCursor cursor, List<DevLogEvent> events, boolean sessionChanged, boolean hasMore) Creates an instance of aAgentLogPagerecord class.- Parameters:
cursor- the value for thecursorrecord componentevents- the value for theeventsrecord componentsessionChanged- the value for thesessionChangedrecord 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
-
events
Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
sessionChanged
public boolean sessionChanged()Returns the value of thesessionChangedrecord component.- Returns:
- the value of the
sessionChangedrecord component
-
hasMore
public boolean hasMore()Returns the value of thehasMorerecord component.- Returns:
- the value of the
hasMorerecord component
-