Record Class SnapshotInfo
java.lang.Object
java.lang.Record
tech.skworks.tachyon.api.snapshot.SnapshotInfo
public record SnapshotInfo(String snapshotId, long timestamp, String reason, String source, SnapshotTriggerType triggerType, String granularity, boolean locked)
extends Record
Short class explaination
Long class explaination with @link if needed
Project Tachyon
- Since:
- 1.0.0-SNAPSHOT
- Version:
- 1.0
- Author:
- Jimmy (vSKAH) - 24/08/2026
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshotInfo(String snapshotId, long timestamp, String reason, String source, SnapshotTriggerType triggerType, String granularity, boolean locked) Creates an instance of aSnapshotInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegranularityrecord component.final inthashCode()Returns a hash code value for this object.booleanlocked()Returns the value of thelockedrecord component.reason()Returns the value of thereasonrecord component.Returns the value of thesnapshotIdrecord component.source()Returns the value of thesourcerecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetriggerTyperecord component.
-
Constructor Details
-
SnapshotInfo
public SnapshotInfo(String snapshotId, long timestamp, String reason, String source, SnapshotTriggerType triggerType, String granularity, boolean locked) Creates an instance of aSnapshotInforecord class.- Parameters:
snapshotId- the value for thesnapshotIdrecord componenttimestamp- the value for thetimestamprecord componentreason- the value for thereasonrecord componentsource- the value for thesourcerecord componenttriggerType- the value for thetriggerTyperecord componentgranularity- the value for thegranularityrecord componentlocked- the value for thelockedrecord 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. -
snapshotId
Returns the value of thesnapshotIdrecord component.- Returns:
- the value of the
snapshotIdrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
triggerType
Returns the value of thetriggerTyperecord component.- Returns:
- the value of the
triggerTyperecord component
-
granularity
Returns the value of thegranularityrecord component.- Returns:
- the value of the
granularityrecord component
-
locked
public boolean locked()Returns the value of thelockedrecord component.- Returns:
- the value of the
lockedrecord component
-