Java Version set to 1.8
anonymous types replaced by lambda's Method references used instead of Lambda's Explicit type replaced by <> travis.yml updated to java 1.8
This commit is contained in:
committed by
Andreas Mager
parent
555893d287
commit
fb9765304c
@@ -59,14 +59,11 @@ final class EmbeddedLauncher {
|
||||
|
||||
System.out.println("Broker started press [CTRL+C] to stop");
|
||||
//Bind a shutdown hook
|
||||
Runtime.getRuntime().addShutdownHook(new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
System.out.println("Stopping broker");
|
||||
mqttBroker.stopServer();
|
||||
System.out.println("Broker stopped");
|
||||
}
|
||||
});
|
||||
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
|
||||
System.out.println("Stopping broker");
|
||||
mqttBroker.stopServer();
|
||||
System.out.println("Broker stopped");
|
||||
}));
|
||||
|
||||
Thread.sleep(20000);
|
||||
System.out.println("Before self publish");
|
||||
|
||||
Reference in New Issue
Block a user