Package io.grpc.internal
Class ClientTransportFactory.ClientTransportOptions
- java.lang.Object
-
- io.grpc.internal.ClientTransportFactory.ClientTransportOptions
-
- Enclosing interface:
- ClientTransportFactory
public static final class ClientTransportFactory.ClientTransportOptions extends java.lang.Object
Options passed toClientTransportFactory.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 usingfinal
for those fields as well as avoids retaining unused objects contained in the options.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
authority
private ChannelLogger
channelLogger
private HttpConnectProxiedSocketAddress
connectProxiedSocketAddr
private Attributes
eagAttributes
private java.lang.String
userAgent
-
Constructor Summary
Constructors Constructor Description ClientTransportOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getAuthority()
ChannelLogger
getChannelLogger()
Attributes
getEagAttributes()
HttpConnectProxiedSocketAddress
getHttpConnectProxiedSocketAddress()
java.lang.String
getUserAgent()
int
hashCode()
ClientTransportFactory.ClientTransportOptions
setAuthority(java.lang.String authority)
Sets the non-null authority.ClientTransportFactory.ClientTransportOptions
setChannelLogger(ChannelLogger channelLogger)
ClientTransportFactory.ClientTransportOptions
setEagAttributes(Attributes eagAttributes)
Sets the non-null EquivalentAddressGroup's attributes.ClientTransportFactory.ClientTransportOptions
setHttpConnectProxiedSocketAddress(HttpConnectProxiedSocketAddress connectProxiedSocketAddr)
ClientTransportFactory.ClientTransportOptions
setUserAgent(java.lang.String userAgent)
-
-
-
Field Detail
-
channelLogger
private ChannelLogger channelLogger
-
authority
private java.lang.String authority
-
eagAttributes
private Attributes eagAttributes
-
userAgent
@Nullable private java.lang.String userAgent
-
connectProxiedSocketAddr
@Nullable private HttpConnectProxiedSocketAddress connectProxiedSocketAddr
-
-
Method Detail
-
getChannelLogger
public ChannelLogger getChannelLogger()
-
setChannelLogger
public ClientTransportFactory.ClientTransportOptions setChannelLogger(ChannelLogger channelLogger)
-
getAuthority
public java.lang.String getAuthority()
-
setAuthority
public ClientTransportFactory.ClientTransportOptions setAuthority(java.lang.String authority)
Sets the non-null authority.
-
getEagAttributes
public Attributes getEagAttributes()
-
setEagAttributes
public ClientTransportFactory.ClientTransportOptions setEagAttributes(Attributes eagAttributes)
Sets the non-null EquivalentAddressGroup's attributes.
-
getUserAgent
@Nullable public java.lang.String getUserAgent()
-
setUserAgent
public ClientTransportFactory.ClientTransportOptions setUserAgent(@Nullable java.lang.String userAgent)
-
getHttpConnectProxiedSocketAddress
@Nullable public HttpConnectProxiedSocketAddress getHttpConnectProxiedSocketAddress()
-
setHttpConnectProxiedSocketAddress
public ClientTransportFactory.ClientTransportOptions setHttpConnectProxiedSocketAddress(@Nullable HttpConnectProxiedSocketAddress connectProxiedSocketAddr)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-