org.mashupbots.socko.webserver

TcpConfig

case class TcpConfig(noDelay: Option[Boolean] = None, sendBufferSize: Option[Int] = None, receiveBufferSize: Option[Int] = None, keepAlive: Option[Boolean] = None, reuseAddress: Option[Boolean] = None, soLinger: Option[Int] = None, trafficClass: Option[Int] = None, acceptBackLog: Option[Int] = 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] = None, sendBufferSize: Option[Int] = None, receiveBufferSize: Option[Int] = None, keepAlive: Option[Boolean] = None, reuseAddress: Option[Boolean] = None, soLinger: Option[Int] = None, trafficClass: Option[Int] = None, acceptBackLog: Option[Int] = 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: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. 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).

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  8. def finalize(): Unit

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

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

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

    Turn on socket keep-alive.

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

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

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

    Disable Nagle's algorithm.

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

  14. final def notify(): Unit

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

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

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

  17. val reuseAddress: Option[Boolean]

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

  18. val sendBufferSize: Option[Int]

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

  19. val soLinger: Option[Int]

    Specify a linger-on-close timeout.

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

    Definition Classes
    AnyRef
  21. 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.

  22. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. 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