Record Class RepositoryReplicaEndpoint
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.replication.RepositoryReplicaEndpoint
- Record Components:
replica- replica idendpointType- endpoint type, such aslocal-pathsafeLabel- redacted endpoint label
- All Implemented Interfaces:
Serializable
public record RepositoryReplicaEndpoint(RepositoryReplicaId replica, String endpointType, String safeLabel)
extends Record
implements Serializable
Redacted endpoint descriptor for a repository replica.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryReplicaEndpoint(RepositoryReplicaId replica, String endpointType, String safeLabel) Creates a validated endpoint descriptor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theendpointTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.replica()Returns the value of thereplicarecord component.Returns the value of thesafeLabelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RepositoryReplicaEndpoint
public RepositoryReplicaEndpoint(RepositoryReplicaId replica, String endpointType, String safeLabel) Creates a validated endpoint descriptor.
-
-
Method Details
-
toString
-
hashCode
-
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). -
replica
-
endpointType
Returns the value of theendpointTyperecord component.- Returns:
- the value of the
endpointTyperecord component
-
safeLabel
-