Record Class ReplicaClient.ChangelogAndDomainStates
java.lang.Object
java.lang.Record
org.forgerock.opendj.server.leaderbasedreplication.ReplicaClient.ChangelogAndDomainStates
- Record Components:
domain
- the domaindomainState
- the domain statechangelogState
- the changelog state
- Enclosing class:
ReplicaClient
public static record ReplicaClient.ChangelogAndDomainStates(Domain domain, Topology.DomainState domainState, ReplicaState changelogState)
extends Record
Represents the changelog state and the domain state (SCP and PP) for a given domain.
-
Constructor Summary
ConstructorsConstructorDescriptionChangelogAndDomainStates
(Domain domain, Topology.DomainState domainState, ReplicaState changelogState) Creates an instance of aChangelogAndDomainStates
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechangelogState
record component.domain()
Returns the value of thedomain
record component.Returns the value of thedomainState
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ChangelogAndDomainStates
public ChangelogAndDomainStates(Domain domain, Topology.DomainState domainState, ReplicaState changelogState) Creates an instance of aChangelogAndDomainStates
record class.- Parameters:
domain
- the value for thedomain
record componentdomainState
- the value for thedomainState
record componentchangelogState
- the value for thechangelogState
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
domain
Returns the value of thedomain
record component.- Returns:
- the value of the
domain
record component
-
domainState
Returns the value of thedomainState
record component.- Returns:
- the value of the
domainState
record component
-
changelogState
Returns the value of thechangelogState
record component.- Returns:
- the value of the
changelogState
record component
-