#19046 replace system.{shutdown => terminate}

This commit is contained in:
Roland Kuhn 2016-01-17 15:48:52 +01:00
parent 1ef35d907f
commit 3140e72265
57 changed files with 67 additions and 67 deletions

View file

@ -29,11 +29,11 @@ public class HighLevelServerBindFailureExample {
@Override
public void onFailure(Throwable failure) throws Throwable {
System.err.println("Something very bad happened! " + failure.getMessage());
system.shutdown();
system.terminate();
}
}, system.dispatcher());
system.shutdown();
system.terminate();
}
}
//#binding-failure-high-level-example

View file

@ -22,7 +22,7 @@ public class HighLevelServerExample extends HttpApp {
new HighLevelServerExample().bindRoute("localhost", 8080, system);
System.out.println("Type RETURN to exit");
System.in.read();
system.shutdown();
system.terminate();
}
// A RequestVal is a type-safe representation of some aspect of the request.

View file

@ -237,7 +237,7 @@ public class HttpServerExampleDocTest {
System.out.println("Press ENTER to stop.");
new BufferedReader(new InputStreamReader(System.in)).readLine();
} finally {
system.shutdown();
system.terminate();
}
}
public static void main(String[] args) throws Exception {

View file

@ -63,7 +63,7 @@ public class WebsocketCoreExample {
System.out.println("Press ENTER to stop.");
new BufferedReader(new InputStreamReader(System.in)).readLine();
} finally {
system.shutdown();
system.terminate();
}
}