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 aReplicaDbDescription
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thenewestFile
record component.boolean
Returns the value of thenewestMessageIsReplicaOfflineMessage
record component.int
Returns the value of thenumberOfFiles
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ReplicaDbDescription
public ReplicaDbDescription(int numberOfFiles, boolean newestMessageIsReplicaOfflineMessage, ReplicationDomainDB.ReplicaDbFileContent newestFile) Creates an instance of aReplicaDbDescription
record class.- Parameters:
numberOfFiles
- the value for thenumberOfFiles
record componentnewestMessageIsReplicaOfflineMessage
- the value for thenewestMessageIsReplicaOfflineMessage
record componentnewestFile
- the value for thenewestFile
record 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 thenumberOfFiles
record component.- Returns:
- the value of the
numberOfFiles
record component
-
newestMessageIsReplicaOfflineMessage
public boolean newestMessageIsReplicaOfflineMessage()Returns the value of thenewestMessageIsReplicaOfflineMessage
record component.- Returns:
- the value of the
newestMessageIsReplicaOfflineMessage
record component
-
newestFile
Returns the value of thenewestFile
record component.- Returns:
- the value of the
newestFile
record component
-