Record Class ReplicationDomainDB.ReplicaDbDescription
java.lang.Object
java.lang.Record
org.opends.server.replication.server.changelog.api.ReplicationDomainDB.ReplicaDbDescription
- Record Components:
numberOfFiles- The number of files in the DBnewestMessageIsReplicaOfflineMessage- Whether the newest message is a ReplicaOfflineMessagenewestFile- The content of the newest file
- Enclosing interface:
- ReplicationDomainDB
public static record ReplicationDomainDB.ReplicaDbDescription(int numberOfFiles, boolean newestMessageIsReplicaOfflineMessage, ReplicationDomainDB.ReplicaDbFileContent newestFile)
extends Record
Describes the content of a Replica DB.
-
Constructor Summary
ConstructorsConstructorDescriptionReplicaDbDescription(int numberOfFiles, boolean newestMessageIsReplicaOfflineMessage, ReplicationDomainDB.ReplicaDbFileContent newestFile) Creates an instance of aReplicaDbDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenewestFilerecord component.booleanReturns the value of thenewestMessageIsReplicaOfflineMessagerecord component.intReturns the value of thenumberOfFilesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReplicaDbDescription
public ReplicaDbDescription(int numberOfFiles, boolean newestMessageIsReplicaOfflineMessage, ReplicationDomainDB.ReplicaDbFileContent newestFile) Creates an instance of aReplicaDbDescriptionrecord class.- Parameters:
numberOfFiles- the value for thenumberOfFilesrecord componentnewestMessageIsReplicaOfflineMessage- the value for thenewestMessageIsReplicaOfflineMessagerecord componentnewestFile- the value for thenewestFilerecord component
-
-
Method Details
-
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 '=='. -
numberOfFiles
public int numberOfFiles()Returns the value of thenumberOfFilesrecord component.- Returns:
- the value of the
numberOfFilesrecord component
-
newestMessageIsReplicaOfflineMessage
public boolean newestMessageIsReplicaOfflineMessage()Returns the value of thenewestMessageIsReplicaOfflineMessagerecord component.- Returns:
- the value of the
newestMessageIsReplicaOfflineMessagerecord component
-
newestFile
Returns the value of thenewestFilerecord component.- Returns:
- the value of the
newestFilerecord component
-