Class ClientTransportFactory.ClientTransportOptions
java.lang.Object
io.grpc.internal.ClientTransportFactory.ClientTransportOptions
- Enclosing interface:
ClientTransportFactory
Options passed to
ClientTransportFactory.newClientTransport(SocketAddress, ClientTransportFactory.ClientTransportOptions, 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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate ChannelLoggerprivate HttpConnectProxiedSocketAddressprivate Attributesprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()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)
-
Field Details
-
channelLogger
-
authority
-
eagAttributes
-
userAgent
-
connectProxiedSocketAddr
-
-
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
-
equals
-