Class PrimaryServer

java.lang.Object
io.activej.reactor.AbstractNioReactive
io.activej.net.AbstractReactiveServer
io.activej.net.PrimaryServer
All Implemented Interfaces:
ReactiveServer, WorkerServer, io.activej.reactor.jmx.ReactiveJmxBean, io.activej.reactor.jmx.ReactiveJmxBeanWithStats, io.activej.reactor.NioReactive, io.activej.reactor.Reactive

public final class PrimaryServer extends AbstractReactiveServer
It is a simple balancer server, which dispatches its connections to its WorkerServers.

When an incoming connection takes place, it forwards the request to one of them with a round-robin algorithm.