public static final class ClientTransportFactory.ClientTransportOptions extends Object
#newClientTransport(SocketAddress, ClientTransportOptions)
. 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 and Description |
---|
ClientTransportOptions() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAuthority() |
ChannelLogger |
getChannelLogger() |
Attributes |
getEagAttributes() |
HttpConnectProxiedSocketAddress |
getHttpConnectProxiedSocketAddress() |
String |
getUserAgent() |
int |
hashCode() |
ClientTransportFactory.ClientTransportOptions |
setAuthority(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(String userAgent) |
public ChannelLogger getChannelLogger()
public ClientTransportFactory.ClientTransportOptions setChannelLogger(ChannelLogger channelLogger)
public String getAuthority()
public ClientTransportFactory.ClientTransportOptions setAuthority(String authority)
public Attributes getEagAttributes()
public ClientTransportFactory.ClientTransportOptions setEagAttributes(Attributes eagAttributes)
public ClientTransportFactory.ClientTransportOptions setUserAgent(@Nullable String userAgent)
@Nullable public HttpConnectProxiedSocketAddress getHttpConnectProxiedSocketAddress()
public ClientTransportFactory.ClientTransportOptions setHttpConnectProxiedSocketAddress(@Nullable HttpConnectProxiedSocketAddress connectProxiedSocketAddr)
Copyright © 2019. All rights reserved.