System.out.println("Starting compacter");
Configuration conf = e.getConfiguration();
factory = new NioClientSocketChannelFactory(bossExecutor, workerExecutor, 3);
bootstrap = new ClientBootstrap(factory);
bootstrap.getPipeline().addLast("decoder", new ObjectDecoder());
bootstrap.getPipeline().addLast("handler", new Handler());
bootstrap.setOption("tcpNoDelay", false);
bootstrap.setOption("keepAlive", true);
bootstrap.setOption("reuseAddress", true);
bootstrap.setOption("connectTimeoutMillis", 100);