#import <GRPCChannelPool.h>
Instance Methods | |
(nullable GRPCPooledChannel *) | - channelWithHost:callOptions: |
(void) | - disconnectAllChannels |
(nullable instancetype) | - initTestPool |
(nullable instancetype) | - NS_UNAVAILABLE |
Class Methods | |
(nullable instancetype) | + NS_UNAVAILABLE |
(nullable instancetype) | + sharedInstance |
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.
- (nullable GRPCPooledChannel *) channelWithHost: | (NSString *) | host | |
callOptions: | (GRPCCallOptions *) | callOptions | |
Return a channel with a particular configuration. The channel may be a cached channel.
- (void) disconnectAllChannels |
Disconnect all channels in this pool.
- (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).
+ (nullable instancetype) NS_UNAVAILABLE |
- (nullable instancetype) NS_UNAVAILABLE |
+ (nullable instancetype) sharedInstance |
Get the global channel pool.