if(jmx) {// register mbean
MetricsRegistry.registerMBeans(metrics, port);
}
// configure initializer
SessionStore sessionStore = new SessionStore();
MixServerHandler msgHandler = new MixServerHandler(sessionStore, syncThreshold, scale);
MixServerInitializer initializer = new MixServerInitializer(msgHandler, throughputCounter, sslCtx);
Runnable cleanSessionTask = new IdleSessionSweeper(sessionStore, sessionTTLinSec * 1000L);
ScheduledExecutorService idleSessionChecker = Executors.newScheduledThreadPool(1);