@Plugin(name="SocketOptions", category="Core", printObject=true) public class SocketOptions extends Object implements Builder<SocketOptions>, Cloneable
Socket
methods.Constructor and Description |
---|
SocketOptions() |
public SocketOptions()
@PluginBuilderFactory public static SocketOptions newBuilder()
public void apply(Socket socket) throws SocketException
SocketException
public SocketOptions build()
Builder
build
in interface Builder<SocketOptions>
public Integer getActualTrafficClass()
public SocketPerformancePreferences getPerformancePreferences()
public Integer getReceiveBufferSize()
public Rfc1349TrafficClass getRfc1349TrafficClass()
public Integer getSendBufferSize()
public Integer getSoLinger()
public Integer getSoTimeout()
public Integer getTrafficClass()
public Boolean isKeepAlive()
public Boolean isOobInline()
public Boolean isReuseAddress()
public Boolean isTcpNoDelay()
public SocketOptions setKeepAlive(boolean keepAlive)
public SocketOptions setOobInline(boolean oobInline)
public SocketOptions setPerformancePreferences(SocketPerformancePreferences performancePreferences)
public SocketOptions setReceiveBufferSize(int receiveBufferSize)
public SocketOptions setReuseAddress(boolean reuseAddress)
public SocketOptions setRfc1349TrafficClass(Rfc1349TrafficClass trafficClass)
public SocketOptions setSendBufferSize(int sendBufferSize)
public SocketOptions setSoLinger(int soLinger)
public SocketOptions setSoTimeout(int soTimeout)
public SocketOptions setTcpNoDelay(boolean tcpNoDelay)
public SocketOptions setTrafficClass(int trafficClass)
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.