*/
public static class Server extends SessionTask {
public static void run() throws IOException {
Scheduler sessionScheduler = Scheduler.getDefaultScheduler(); // The scheduler/thread pool on which all tasks will be run
NioSelectorScheduler nio = new NioSelectorScheduler(); // Starts a single thread that manages the select loop
nio.listen(port, Server.class, sessionScheduler); //
}
@Override
public void execute() throws Pausable, Exception {
System.out.println("[" + this.id + "] Connection rcvd");