public static final class ClientTransportFactory.ClientTransportOptions extends Object
ClientTransportFactory.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() |
Attributes |
getEagAttributes() |
ProxyParameters |
getProxyParameters() |
String |
getUserAgent() |
int |
hashCode() |
ClientTransportFactory.ClientTransportOptions |
setAuthority(String authority)
Sets the non-null authority.
|
ClientTransportFactory.ClientTransportOptions |
setEagAttributes(Attributes eagAttributes)
Sets the non-null EquivalentAddressGroup's attributes.
|
ClientTransportFactory.ClientTransportOptions |
setProxyParameters(ProxyParameters proxyParameters) |
ClientTransportFactory.ClientTransportOptions |
setUserAgent(String userAgent) |
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 ProxyParameters getProxyParameters()
public ClientTransportFactory.ClientTransportOptions setProxyParameters(@Nullable ProxyParameters proxyParameters)
Copyright © 2018. All rights reserved.