Package org.apache.http.config
Class SocketConfig.Builder
- java.lang.Object
-
- org.apache.http.config.SocketConfig.Builder
-
- Enclosing class:
- SocketConfig
public static class SocketConfig.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketConfig
build()
SocketConfig.Builder
setBacklogSize(int backlogSize)
SocketConfig.Builder
setRcvBufSize(int rcvBufSize)
SocketConfig.Builder
setSndBufSize(int sndBufSize)
SocketConfig.Builder
setSoKeepAlive(boolean soKeepAlive)
SocketConfig.Builder
setSoLinger(int soLinger)
SocketConfig.Builder
setSoReuseAddress(boolean soReuseAddress)
SocketConfig.Builder
setSoTimeout(int soTimeout)
SocketConfig.Builder
setTcpNoDelay(boolean tcpNoDelay)
-
-
-
Method Detail
-
setSoTimeout
public SocketConfig.Builder setSoTimeout(int soTimeout)
-
setSoReuseAddress
public SocketConfig.Builder setSoReuseAddress(boolean soReuseAddress)
-
setSoLinger
public SocketConfig.Builder setSoLinger(int soLinger)
-
setSoKeepAlive
public SocketConfig.Builder setSoKeepAlive(boolean soKeepAlive)
-
setTcpNoDelay
public SocketConfig.Builder setTcpNoDelay(boolean tcpNoDelay)
-
setSndBufSize
public SocketConfig.Builder setSndBufSize(int sndBufSize)
- Since:
- 4.4
-
setRcvBufSize
public SocketConfig.Builder setRcvBufSize(int rcvBufSize)
- Since:
- 4.4
-
setBacklogSize
public SocketConfig.Builder setBacklogSize(int backlogSize)
- Since:
- 4.4
-
build
public SocketConfig build()
-
-