Package io.grpc.internal
Class ClientTransportFactory.ClientTransportOptions
java.lang.Object
io.grpc.internal.ClientTransportFactory.ClientTransportOptions
- Enclosing interface:
ClientTransportFactory
Options passed to
ClientTransportFactory.newClientTransport(java.net.SocketAddress, io.grpc.internal.ClientTransportFactory.ClientTransportOptions, io.grpc.ChannelLogger)
. Although it is safe to save this object if
received, it is generally expected that the useful fields are copied and then the options
object is discarded. This allows using final
for those fields as well as avoids
retaining unused objects contained in the options.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
setAuthority
(String authority) Sets the non-null authority.setChannelLogger
(ChannelLogger channelLogger) setEagAttributes
(Attributes eagAttributes) Sets the non-null EquivalentAddressGroup's attributes.setHttpConnectProxiedSocketAddress
(HttpConnectProxiedSocketAddress connectProxiedSocketAddr) setUserAgent
(String userAgent)
-
Constructor Details
-
ClientTransportOptions
public ClientTransportOptions()
-
-
Method Details
-
getChannelLogger
-
setChannelLogger
-
getAuthority
-
setAuthority
Sets the non-null authority. -
getEagAttributes
-
setEagAttributes
Sets the non-null EquivalentAddressGroup's attributes. -
getUserAgent
-
setUserAgent
-
getHttpConnectProxiedSocketAddress
-
setHttpConnectProxiedSocketAddress
public ClientTransportFactory.ClientTransportOptions setHttpConnectProxiedSocketAddress(@Nullable HttpConnectProxiedSocketAddress connectProxiedSocketAddr) -
hashCode
public int hashCode() -
equals
-