ManagedChannelBuilderOps
Value members
Methods
Builds a ManagedChannel into a bracketed stream. The managed channel is
shut down when the stream is complete. Shutdown is as follows:
- We request an orderly shutdown, allowing preexisting calls to continue without accepting new calls.
- We block for up to 30 seconds on termination, using the blocking context
- If the channel is not yet terminated, we trigger a forceful shutdown
For different tradeoffs in shutdown behavior, see {{resourceWithShutdown}}.
Builds a ManagedChannel into a bracketed resource. The managed channel is
shut down when the resource is released.
- Value Params
- shutdown
Determines the behavior of the cleanup of the managed channel, with respect to forceful vs. graceful shutdown and how to poll or block for termination.
Builds a ManagedChannel into a bracketed stream. The managed channel is
shut down when the resource is released. Shutdown is as follows:
- We request an orderly shutdown, allowing preexisting calls to continue without accepting new calls.
- We block for up to 30 seconds on termination, using the blocking context
- If the channel is not yet terminated, we trigger a forceful shutdown
For different tradeoffs in shutdown behavior, see {{streamWithShutdown}}.
Builds a ManagedChannel into a bracketed stream. The managed channel is
shut down when the stream is complete.
- Value Params
- shutdown
Determines the behavior of the cleanup of the managed channel, with respect to forceful vs. graceful shutdown and how to poll or block for termination.