Package com.tnsai.coordination.lifecycle
Record Class GroupCheckpoint.Snapshot
java.lang.Object
java.lang.Record
com.tnsai.coordination.lifecycle.GroupCheckpoint.Snapshot
- Record Components:
groupId- the group's unique identifiergroupName- the group's human-readable namelifecycle- the group's lifecycle state at capture timememberIds- IDs of all members in the groupmetadata- additional key-value metadata about the grouptimestamp- when the snapshot was captured
- Enclosing class:
GroupCheckpoint
public static record GroupCheckpoint.Snapshot(String groupId, String groupName, com.tnsai.agents.groups.GroupLifecycle lifecycle, List<String> memberIds, Map<String,Object> metadata, Instant timestamp)
extends Record
Snapshot of a group's state at a point in time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.Returns the value of thegroupNamerecord component.final inthashCode()Returns a hash code value for this object.com.tnsai.agents.groups.GroupLifecycleReturns the value of thelifecyclerecord component.Returns the value of thememberIdsrecord component.metadata()Returns the value of themetadatarecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
groupName
Returns the value of thegroupNamerecord component.- Returns:
- the value of the
groupNamerecord component
-
lifecycle
public com.tnsai.agents.groups.GroupLifecycle lifecycle()Returns the value of thelifecyclerecord component.- Returns:
- the value of the
lifecyclerecord component
-
memberIds
Returns the value of thememberIdsrecord component.- Returns:
- the value of the
memberIdsrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-