Skip to content

Commit af9a157

Browse files
committed
Update shutdown API documentation
1 parent 6784bca commit af9a157

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

api/src/main/java/io/grpc/Server.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,12 @@ public List<ServerServiceDefinition> getMutableServices() {
104104

105105
/**
106106
* Initiates an orderly shutdown in which preexisting calls continue but new calls are rejected.
107-
* This call will not wait for preexisting calls finish before returning. After this call returns,
108-
* this server has released the listening socket(s) and may be reused by another server.
107+
* After this call returns, this server has released the listening socket(s) and may be reused by
108+
* another server.
109+
*
110+
* Note that this method will not wait for preexisting calls finish before returning.
111+
* {@link #awaitTermination()} or {@link #awaitTermination(long, TimeUnit)} needs to be called to
112+
* wait for existing calls to finish.
109113
*
110114
* @return {@code this} object
111115
* @since 1.0.0

0 commit comments

Comments
 (0)