Function which determines whether or not to accept a connection.
Function which determines whether or not to accept a connection.
This is the function called by the Workers to create an Option[ConnectionHandler]
This allows a Delegator to receive messages which are sent by way of ServerRef.delegatorBroadcast(msg : Any)
Shutdown hook.
Shutdown hook. Called when a Worker stop or a server is unregistered.
reference to the server
reference to the worker this delegator belongs to
A Delegator is in charge of creating new ConnectionHandler’s for each new connection. Delegators live inside workers and run as part of the worker’s event loop
Delegators are the liaison between the outside world and your application's connection handling logic.
They can hold state, and pass that state to newly created ConnectionHandlers.
They can receive messages from the outside world, and thus be notified of changes in their environment by way of the handleMessage.
This is triggered by utilizing the ServerRef's delegatorBroadcast function.