#19046 replace system.{shutdown => terminate}
This commit is contained in:
parent
1ef35d907f
commit
3140e72265
57 changed files with 67 additions and 67 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue