public class GrpcServerHelper extends Object
| Constructor and Description |
|---|
GrpcServerHelper() |
| Modifier and Type | Method and Description |
|---|---|
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 © 2024. All rights reserved.