public static final class InternalChannelz.SocketOptions.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
InternalChannelz.SocketOptions.Builder |
addOption(String name,
boolean value) |
InternalChannelz.SocketOptions.Builder |
addOption(String name,
int value) |
InternalChannelz.SocketOptions.Builder |
addOption(String name,
String value) |
InternalChannelz.SocketOptions |
build() |
InternalChannelz.SocketOptions.Builder |
setSocketOptionLingerSeconds(Integer lingerSeconds)
The value of
Socket.getSoLinger() . |
InternalChannelz.SocketOptions.Builder |
setSocketOptionTimeoutMillis(Integer timeoutMillis)
The value of
Socket.getSoTimeout() . |
InternalChannelz.SocketOptions.Builder |
setTcpInfo(InternalChannelz.TcpInfo tcpInfo) |
public InternalChannelz.SocketOptions.Builder setSocketOptionTimeoutMillis(Integer timeoutMillis)
Socket.getSoTimeout()
.public InternalChannelz.SocketOptions.Builder setSocketOptionLingerSeconds(Integer lingerSeconds)
Socket.getSoLinger()
.
Note: SO_LINGER is typically expressed in seconds.public InternalChannelz.SocketOptions.Builder setTcpInfo(InternalChannelz.TcpInfo tcpInfo)
public InternalChannelz.SocketOptions.Builder addOption(String name, String value)
public InternalChannelz.SocketOptions.Builder addOption(String name, int value)
public InternalChannelz.SocketOptions.Builder addOption(String name, boolean value)
public InternalChannelz.SocketOptions build()
Copyright © 2018. All rights reserved.