public final class ManagedChannelHelper extends Object
| 构造器和说明 |
|---|
ManagedChannelHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
shutdownAndAwaitTermination(io.grpc.ManagedChannel mChannel) |
static boolean |
shutdownAndAwaitTermination(io.grpc.ManagedChannel mChannel,
long timeoutMillis)
The following method shuts down an
ManagedChannel 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.ManagedChannel mChannel)
public static boolean shutdownAndAwaitTermination(io.grpc.ManagedChannel mChannel,
long timeoutMillis)
ManagedChannel 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.