MCPcopy Create free account
hub / github.com/grpc/grpc-java / awaitTermination

Method awaitTermination

api/src/main/java/io/grpc/Server.java:170–170  ·  view source on GitHub ↗

Waits for the server to become terminated, giving up if the timeout is reached. Calling this method before start() or shutdown() is permitted and does not change its behavior. @return whether the server is terminated, as would be done by #isTerminated().

(long timeout, TimeUnit unit)

Source from the content-addressed store, hash-verified

168 * @return whether the server is terminated, as would be done by {@link #isTerminated()}.
169 */
170 public abstract boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException;
171
172 /**
173 * Waits for the server to become terminated.

Callers 15

mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
runMethod · 0.95
runMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
runMethod · 0.95
tearDownMethod · 0.45
doUnaryRpcMethod · 0.45

Calls

no outgoing calls