public class GrpcServerHelper extends Object
| 构造器和说明 |
|---|
GrpcServerHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
shutdownAndAwaitTermination(io.grpc.Server server) |
static boolean |
shutdownAndAwaitTermination(io.grpc.Server server,
long timeoutMillis)
The following method shuts down an
Server in two
phases, first by calling shutdown to reject incoming tasks,
and then calling shutdownNow, if necessary, to cancel any
lingering tasks. |
public static boolean shutdownAndAwaitTermination(io.grpc.Server server)
public static boolean shutdownAndAwaitTermination(io.grpc.Server server,
long timeoutMillis)
Server in two
phases, first by calling shutdown to reject incoming tasks,
and then calling shutdownNow, if necessary, to cancel any
lingering tasks.Copyright © 2020. All rights reserved.