Record Class HotBackupManager.BackupFile
java.lang.Object
java.lang.Record
com.loomcache.server.persistence.HotBackupManager.BackupFile
- Enclosing class:
HotBackupManager
-
Constructor Summary
ConstructorsConstructorDescriptionBackupFile(String groupName, long index, long term, long sizeBytes, Path snapshotPath) Creates an instance of aBackupFilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.longReturns the value of thesizeBytesrecord component.Returns the value of thesnapshotPathrecord component.longterm()Returns the value of thetermrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BackupFile
Creates an instance of aBackupFilerecord class.- Parameters:
groupName- the value for thegroupNamerecord componentindex- the value for theindexrecord componentterm- the value for thetermrecord componentsizeBytes- the value for thesizeBytesrecord componentsnapshotPath- the value for thesnapshotPathrecord 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
-
sizeBytes
public long sizeBytes()Returns the value of thesizeBytesrecord component.- Returns:
- the value of the
sizeBytesrecord component
-
snapshotPath
Returns the value of thesnapshotPathrecord component.- Returns:
- the value of the
snapshotPathrecord component
-