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.
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionConfig(String baseUri, Duration connectTimeout, Duration requestTimeout, int maxConnections) Creates an instance of aConnectionConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbaseUri()Returns the value of thebaseUrirecord component.Returns the value of theconnectTimeoutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxConnectionsrecord component.Returns the value of therequestTimeoutrecord component.final StringtoString()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 aConnectionConfigrecord class.- Parameters:
baseUri- the value for thebaseUrirecord componentconnectTimeout- the value for theconnectTimeoutrecord componentrequestTimeout- the value for therequestTimeoutrecord componentmaxConnections- the value for themaxConnectionsrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
baseUri
-
connectTimeout
Returns the value of theconnectTimeoutrecord component.- Returns:
- the value of the
connectTimeoutrecord component
-
requestTimeout
Returns the value of therequestTimeoutrecord component.- Returns:
- the value of the
requestTimeoutrecord component
-
maxConnections
public int maxConnections()Returns the value of themaxConnectionsrecord component.- Returns:
- the value of the
maxConnectionsrecord component
-