ConnectionTracker

mill.server.Server.ConnectionTracker
case class ConnectionTracker(serverLog: String => Unit, acceptTimeoutMillisOpt: Option[Long], serverSocket: ServerSocket, onChange: () => Unit = ...)

Attributes

Source
Server.scala
Graph
Supertypes
trait Serializable
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def activeCount: Int

Attributes

Source
Server.scala
def closeIfTimedOut(): Unit

Attributes

Source
Server.scala
def closeOtherConnections(currentSocket: Socket, reason: Option[String]): Unit

Attributes

Source
Server.scala
def decrement(socket: Socket): Unit

Attributes

Source
Server.scala
def increment(socket: Socket, closeCallback: Option[String] => Unit): Boolean

Register a new connection. Rejected (returns false) once the listen socket has been closed.

Register a new connection. Rejected (returns false) once the listen socket has been closed.

Attributes

Source
Server.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala