SocketConfig

final case class SocketConfig(tcpNoDelay: Boolean, keepAlive: Option[Boolean], reuseAddress: Option[Boolean], lingerInterval: Option[Int], receiveBufferSize: Option[Int], sendBufferSize: Option[Int])

Socket configuration.

Value parameters:
keepAlive

All other socket options are unset by default. The actual value depends on the underlying Netty transport.

lingerInterval

Sets the linger interval. If the value is zero or greater, then it represents a timeout value, in seconds; if the value is negative, it means that this option is disabled.

receiveBufferSize

Sets a hint to the size of the underlying buffers for incoming network I/O.

reuseAddress

Whether or not to allow address reuse.

sendBufferSize

Sets a hint to the size of the underlying buffers for outgoing network I/O.

tcpNoDelay

Whether or not to disable the Nagle algorithm. By default, this option is set to true (Nagle disabled), because the driver has its own internal message coalescing algorithm.

Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product