org.mashupbots.socko.webserver

TcpConfig

case class TcpConfig(noDelay: Option[Boolean] = scala.None, sendBufferSize: Option[Int] = scala.None, receiveBufferSize: Option[Int] = scala.None, keepAlive: Option[Boolean] = scala.None, reuseAddress: Option[Boolean] = scala.None, soLinger: Option[Int] = scala.None, trafficClass: Option[Int] = scala.None, acceptBackLog: Option[Int] = scala.None) extends Product with Serializable

TCP IP configuration as per Netty.

See javadoc and netty doc for more information.

Netty and JVM defaults are used until overriden here.

noDelay

Disable Nagle's algorithm. Defaults to true if not supplied.

sendBufferSize

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

receiveBufferSize

Get the size of the buffer actually used by the platform when receiving in data on this socket.

keepAlive

Turn on socket keep-alive. Defaults to false if not supplied.

reuseAddress

Enable reuse address for a socket and not throw an "already bind exception" The default value is JVM specific.

soLinger

Specify a linger-on-close timeout.

trafficClass

Sets the type-of-service or traffic class field in the IP header for a TCP or UDP socket. \ The default value is JVM specific.

acceptBackLog

The number of requests that can be queued. Useful in managing sudden bursts in requests. If take an example with a socket server invoker that has max pool set to 300, accept threads is 2, and backlog is 200, will be able to make 502 concurrent client calls. The 503rd client request will get an exception immediately. However, this does not mean all 502 requests will be guaranteed to be processed, only the first 300 (as they have server threads available to do the processing). If 202 of the server threads finish processing their requests from their initial client connections and the connection is released before the timeout for the other 202 that are waiting (200 for backlog and 2 for accept thread), then they will be processed (of course this is a request by request determination).

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TcpConfig
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TcpConfig(config: Config, prefix: String)

    Read configuration from AKKA's application.conf.

    Read configuration from AKKA's application.conf. Supply default values to use if setting not present

  2. new TcpConfig(noDelay: Option[Boolean] = scala.None, sendBufferSize: Option[Int] = scala.None, receiveBufferSize: Option[Int] = scala.None, keepAlive: Option[Boolean] = scala.None, reuseAddress: Option[Boolean] = scala.None, soLinger: Option[Int] = scala.None, trafficClass: Option[Int] = scala.None, acceptBackLog: Option[Int] = scala.None)

    noDelay

    Disable Nagle's algorithm. Defaults to true if not supplied.

    sendBufferSize

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

    receiveBufferSize

    Get the size of the buffer actually used by the platform when receiving in data on this socket.

    keepAlive

    Turn on socket keep-alive. Defaults to false if not supplied.

    reuseAddress

    Enable reuse address for a socket and not throw an "already bind exception" The default value is JVM specific.

    soLinger

    Specify a linger-on-close timeout.

    trafficClass

    Sets the type-of-service or traffic class field in the IP header for a TCP or UDP socket. \ The default value is JVM specific.

    acceptBackLog

    The number of requests that can be queued. Useful in managing sudden bursts in requests. If take an example with a socket server invoker that has max pool set to 300, accept threads is 2, and backlog is 200, will be able to make 502 concurrent client calls. The 503rd client request will get an exception immediately. However, this does not mean all 502 requests will be guaranteed to be processed, only the first 300 (as they have server threads available to do the processing). If 202 of the server threads finish processing their requests from their initial client connections and the connection is released before the timeout for the other 202 that are waiting (200 for backlog and 2 for accept thread), then they will be processed (of course this is a request by request determination).

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val acceptBackLog: Option[Int]

    The number of requests that can be queued.

    The number of requests that can be queued. Useful in managing sudden bursts in requests. If take an example with a socket server invoker that has max pool set to 300, accept threads is 2, and backlog is 200, will be able to make 502 concurrent client calls. The 503rd client request will get an exception immediately. However, this does not mean all 502 requests will be guaranteed to be processed, only the first 300 (as they have server threads available to do the processing). If 202 of the server threads finish processing their requests from their initial client connections and the connection is released before the timeout for the other 202 that are waiting (200 for backlog and 2 for accept thread), then they will be processed (of course this is a request by request determination).

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  13. val keepAlive: Option[Boolean]

    Turn on socket keep-alive.

    Turn on socket keep-alive. Defaults to false if not supplied.

  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. val noDelay: Option[Boolean]

    Disable Nagle's algorithm.

    Disable Nagle's algorithm. Defaults to true if not supplied.

  16. final def notify(): Unit

    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  18. val receiveBufferSize: Option[Int]

    Get the size of the buffer actually used by the platform when receiving in data on this socket.

  19. val reuseAddress: Option[Boolean]

    Enable reuse address for a socket and not throw an "already bind exception" The default value is JVM specific.

  20. val sendBufferSize: Option[Int]

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

  21. val soLinger: Option[Int]

    Specify a linger-on-close timeout.

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. val trafficClass: Option[Int]

    Sets the type-of-service or traffic class field in the IP header for a TCP or UDP socket.

    Sets the type-of-service or traffic class field in the IP header for a TCP or UDP socket. \ The default value is JVM specific.

  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped