// No need for synchronization as this is always executed within a synchronized block
private void activateMaxDisconnectionTimer() {
// Set the disconnection timer
long now = System.currentTimeMillis();
maxDisconnectionTimer = new Timer(now + maxDisconnectionTime, new TimerListener() {
public void doTimeOut(Timer t) {
synchronized (NIOHTTPBEDispatcher.this) {
if (frontEndStatus != CONNECTED) {
myLogger.log(Logger.WARNING, myID+" - Max disconnection timeout expired.");
// The remote FrontEnd is probably down --> notify up.