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