Package io.camunda.zeebe.backup.common
Record Class BackupDescriptorImpl
java.lang.Object
java.lang.Record
io.camunda.zeebe.backup.common.BackupDescriptorImpl
- All Implemented Interfaces:
BackupDescriptor
public record BackupDescriptorImpl(Optional<String> snapshotId, long checkpointPosition, int numberOfPartitions, String brokerVersion)
extends Record
implements BackupDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionBackupDescriptorImpl(Optional<String> snapshotId, long checkpointPosition, int numberOfPartitions, String brokerVersion) Creates an instance of aBackupDescriptorImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebrokerVersionrecord component.longReturns the value of thecheckpointPositionrecord component.final booleanIndicates whether some other object is "equal to" this one.static BackupDescriptorImplfrom(BackupDescriptor descriptor) final inthashCode()Returns a hash code value for this object.intReturns the value of thenumberOfPartitionsrecord component.Returns the value of thesnapshotIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BackupDescriptorImpl
public BackupDescriptorImpl(Optional<String> snapshotId, long checkpointPosition, int numberOfPartitions, String brokerVersion) Creates an instance of aBackupDescriptorImplrecord class.- Parameters:
snapshotId- the value for thesnapshotIdrecord componentcheckpointPosition- the value for thecheckpointPositionrecord componentnumberOfPartitions- the value for thenumberOfPartitionsrecord componentbrokerVersion- the value for thebrokerVersionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
snapshotId
Returns the value of thesnapshotIdrecord component.- Specified by:
snapshotIdin interfaceBackupDescriptor- Returns:
- the value of the
snapshotIdrecord component
-
checkpointPosition
public long checkpointPosition()Returns the value of thecheckpointPositionrecord component.- Specified by:
checkpointPositionin interfaceBackupDescriptor- Returns:
- the value of the
checkpointPositionrecord component
-
numberOfPartitions
public int numberOfPartitions()Returns the value of thenumberOfPartitionsrecord component.- Specified by:
numberOfPartitionsin interfaceBackupDescriptor- Returns:
- the value of the
numberOfPartitionsrecord component
-
brokerVersion
Returns the value of thebrokerVersionrecord component.- Specified by:
brokerVersionin interfaceBackupDescriptor- Returns:
- the value of the
brokerVersionrecord component
-