Package com.kristensoft.kdc
Class TcpServerSocketOptions
- java.lang.Object
-
- com.kristensoft.kdc.TcpServerSocketOptions
-
public final class TcpServerSocketOptions extends Object
Defines socket options for aTcpServer.Instances are created using the
TcpServerSocketOptions.Builder. Options that are not explicitly configured use their documented default values or the underlying server socket defaults.- Author:
- Charles B. Kozoyed
- See Also:
TcpServer,TcpServerSocketOptions.Builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTcpServerSocketOptions.BuilderBuildsTcpServerSocketOptionsinstances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetReceiveBufferSize()Returns the configured receive buffer size.BooleangetReuseAddress()Returns whether address reuse is enabled.IntegergetSoTimeout()Returns the configured socket timeout.
-
-
-
Method Detail
-
getReuseAddress
public Boolean getReuseAddress()
Returns whether address reuse is enabled.- Returns:
trueif address reuse is enabled;falseotherwise
-
getReceiveBufferSize
public Integer getReceiveBufferSize()
Returns the configured receive buffer size.- Returns:
- the receive buffer size in bytes, or
nullif the underlying socket default is used
-
getSoTimeout
public Integer getSoTimeout()
Returns the configured socket timeout.- Returns:
- the socket timeout in milliseconds, or
nullif the underlying socket default is used
-
-