Js5Service

class Js5Service(configuration: Js5Configuration, provider: Js5GroupProvider) : Runnable

A single-threaded JS5 service implementation used to fairly feed all connected clients, with a priority on those in the logged in state.

Constructors

Link copied to clipboard
constructor(configuration: Js5Configuration, provider: Js5GroupProvider)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Notifies the lock if the list of clients is not empty, resuming the JS5 service in the process.

Link copied to clipboard
fun push(client: Js5Client, request: Js5GroupRequest)

Pushes a new JS5 request to this client

Link copied to clipboard

Requests a read from the given channel if it can receive more requests.

Link copied to clipboard
open override fun run()
Link copied to clipboard

Triggers a shutdown.