Instance Methods | Class Methods | List of all members
GRPCChannelPool Class Reference

#import <GRPCChannelPool.h>

Inheritance diagram for GRPCChannelPool:
Inheritance graph
[legend]

Instance Methods

(nullable GRPCPooledChannel *) - channelWithHost:callOptions:
 
(void) - disconnectAllChannels
 
(nullable instancetype) - initTestPool
 
(nullable instancetype) - NS_UNAVAILABLE
 

Class Methods

(nullable instancetype) + NS_UNAVAILABLE
 
(nullable instancetype) + sharedInstance
 

Detailed Description

Manage the pool of connected channels. When a channel is no longer referenced by any call, destroy the channel after a certain period of time elapsed.

Definition at line 75 of file GRPCChannelPool.h.

Method Documentation

◆ channelWithHost:callOptions:

- (nullable GRPCPooledChannel *) channelWithHost: (NSString *)  host
callOptions: (GRPCCallOptions *)  callOptions 

Return a channel with a particular configuration. The channel may be a cached channel.

◆ disconnectAllChannels

- (void) disconnectAllChannels

Disconnect all channels in this pool.

◆ initTestPool

- (nullable instancetype) initTestPool

Get an instance of pool isolated from the global shared pool with channels' destroy delay being destroyDelay.

Provided by category GRPCChannelPool(Test).

◆ NS_UNAVAILABLE [1/2]

+ (nullable instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [2/2]

- (nullable instancetype) NS_UNAVAILABLE

◆ sharedInstance

+ (nullable instancetype) sharedInstance

Get the global channel pool.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:46