Record Class HotBackupManager.GroupSnapshot
java.lang.Object
java.lang.Record
com.loomcache.server.persistence.HotBackupManager.GroupSnapshot
- Enclosing class:
HotBackupManager
-
Constructor Summary
ConstructorsConstructorDescriptionGroupSnapshot(String groupName, long index, long term, byte[] data) Creates an instance of aGroupSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroupNamerecord component.final inthashCode()Returns a hash code value for this object.longindex()Returns the value of theindexrecord component.longterm()Returns the value of thetermrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GroupSnapshot
Creates an instance of aGroupSnapshotrecord class.- Parameters:
groupName- the value for thegroupNamerecord componentindex- the value for theindexrecord componentterm- the value for thetermrecord componentdata- the value for thedatarecord 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. -
groupName
Returns the value of thegroupNamerecord component.- Returns:
- the value of the
groupNamerecord component
-
index
public long index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
term
public long term()Returns the value of thetermrecord component.- Returns:
- the value of the
termrecord component
-
data
public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-