Record Class ConnectionConfig
java.lang.Object
java.lang.Record
org.forgerock.opendj.security.hash.ConnectionConfig
- Record Components:
baseUri
- The base URI of the service to connect.connectTimeout
- The connection timeout.requestTimeout
- The request timeout.maxConnections
- The maximum number of connections.
public record ConnectionConfig(String baseUri, Duration connectTimeout, Duration requestTimeout, int maxConnections)
extends Record
The parameters to establish the connection to the remote service.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionConfig
(String baseUri, Duration connectTimeout, Duration requestTimeout, int maxConnections) Creates an instance of aConnectionConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionbaseUri()
Returns the value of thebaseUri
record component.Returns the value of theconnectTimeout
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.int
Returns the value of themaxConnections
record component.Returns the value of therequestTimeout
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ConnectionConfig
public ConnectionConfig(String baseUri, Duration connectTimeout, Duration requestTimeout, int maxConnections) Creates an instance of aConnectionConfig
record class.- Parameters:
baseUri
- the value for thebaseUri
record componentconnectTimeout
- the value for theconnectTimeout
record componentrequestTimeout
- the value for therequestTimeout
record componentmaxConnections
- the value for themaxConnections
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 '=='. -
baseUri
Returns the value of thebaseUri
record component.- Returns:
- the value of the
baseUri
record component
-
connectTimeout
Returns the value of theconnectTimeout
record component.- Returns:
- the value of the
connectTimeout
record component
-
requestTimeout
Returns the value of therequestTimeout
record component.- Returns:
- the value of the
requestTimeout
record component
-
maxConnections
public int maxConnections()Returns the value of themaxConnections
record component.- Returns:
- the value of the
maxConnections
record component
-