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 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
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 thebaseUrirecord component.- Returns:
- the value of the
baseUrirecord component
-
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
-