Package io.camunda.zeebe.backup.common
Record Class BackupIdentifierImpl
java.lang.Object
java.lang.Record
io.camunda.zeebe.backup.common.BackupIdentifierImpl
- All Implemented Interfaces:
BackupIdentifier
public record BackupIdentifierImpl(int nodeId, int partitionId, long checkpointId)
extends Record
implements BackupIdentifier
-
Constructor Summary
ConstructorsConstructorDescriptionBackupIdentifierImpl(int nodeId, int partitionId, long checkpointId) Creates an instance of aBackupIdentifierImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecheckpointIdrecord component.final booleanIndicates whether some other object is "equal to" this one.static BackupIdentifierImplfrom(BackupIdentifier id) final inthashCode()Returns a hash code value for this object.intnodeId()Returns the value of thenodeIdrecord component.intReturns the value of thepartitionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BackupIdentifierImpl
public BackupIdentifierImpl(int nodeId, int partitionId, long checkpointId) Creates an instance of aBackupIdentifierImplrecord class.- Parameters:
nodeId- the value for thenodeIdrecord componentpartitionId- the value for thepartitionIdrecord componentcheckpointId- the value for thecheckpointIdrecord component
-
-
Method Details
-
from
-
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 with '=='. -
nodeId
public int nodeId()Returns the value of thenodeIdrecord component.- Specified by:
nodeIdin interfaceBackupIdentifier- Returns:
- the value of the
nodeIdrecord component
-
partitionId
public int partitionId()Returns the value of thepartitionIdrecord component.- Specified by:
partitionIdin interfaceBackupIdentifier- Returns:
- the value of the
partitionIdrecord component
-
checkpointId
public long checkpointId()Returns the value of thecheckpointIdrecord component.- Specified by:
checkpointIdin interfaceBackupIdentifier- Returns:
- the value of the
checkpointIdrecord component
-