- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
server.start();
server.start(); Runtime.getRuntime().addShutdownHook(new Thread() { @Override
public static void startSentryService() throws Exception { server.start(); final long start = System.currentTimeMillis(); while(!server.isRunning()) { Thread.sleep(1000); if(System.currentTimeMillis() - start > 60000L) { throw new TimeoutException("Server did not start after 60 seconds"); } } }
public static void startSentryService() throws Exception { server.start(); final long start = System.currentTimeMillis(); while(!server.isRunning()) { Thread.sleep(1000); if(System.currentTimeMillis() - start > 60000L) { throw new TimeoutException("Server did not start after 60 seconds"); } } }