java.lang.Object
java.lang.Record
io.helidon.webclient.api.ConnectionKey
- Record Components:
scheme
- uri address schemehost
- uri address hostport
- uri address portreadTimeout
- SO read timeouttls
- TLS to be used in connectiondnsResolver
- DNS resolver to be useddnsAddressLookup
- DNS address lookup strategyproxy
- Proxy server to use for outgoing requests
public record ConnectionKey(String scheme, String host, int port, Duration readTimeout, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, Proxy proxy)
extends Record
Connection key instance contains all needed connection related information.
-
Constructor Summary
ConstructorDescriptionConnectionKey
(String scheme, String host, int port, Duration readTimeout, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, Proxy proxy) Creates an instance of aConnectionKey
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thednsAddressLookup
record component.Returns the value of thednsResolver
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.host()
Returns the value of thehost
record component.int
port()
Returns the value of theport
record component.proxy()
Returns the value of theproxy
record component.Returns the value of thereadTimeout
record component.scheme()
Returns the value of thescheme
record component.tls()
Returns the value of thetls
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ConnectionKey
public ConnectionKey(String scheme, String host, int port, Duration readTimeout, Tls tls, DnsResolver dnsResolver, DnsAddressLookup dnsAddressLookup, Proxy proxy) Creates an instance of aConnectionKey
record class.- Parameters:
scheme
- the value for thescheme
record componenthost
- the value for thehost
record componentport
- the value for theport
record componentreadTimeout
- the value for thereadTimeout
record componenttls
- the value for thetls
record componentdnsResolver
- the value for thednsResolver
record componentdnsAddressLookup
- the value for thednsAddressLookup
record componentproxy
- the value for theproxy
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 '=='. -
scheme
Returns the value of thescheme
record component.- Returns:
- the value of the
scheme
record component
-
host
Returns the value of thehost
record component.- Returns:
- the value of the
host
record component
-
port
public int port()Returns the value of theport
record component.- Returns:
- the value of the
port
record component
-
readTimeout
Returns the value of thereadTimeout
record component.- Returns:
- the value of the
readTimeout
record component
-
tls
Returns the value of thetls
record component.- Returns:
- the value of the
tls
record component
-
dnsResolver
Returns the value of thednsResolver
record component.- Returns:
- the value of the
dnsResolver
record component
-
dnsAddressLookup
Returns the value of thednsAddressLookup
record component.- Returns:
- the value of the
dnsAddressLookup
record component
-
proxy
Returns the value of theproxy
record component.- Returns:
- the value of the
proxy
record component
-