GRPC Objective-C
1.39.1
|
Manage the pool of connected channels. More...
#import <GRPCChannelPool.h>
Instance Methods | |
(nullable instancetype) | - NS_UNAVAILABLE |
(nullable GRPCPooledChannel *) | - channelWithHost:callOptions: |
Return a channel with a particular configuration. More... | |
(void) | - disconnectAllChannels |
Disconnect all channels in this pool. More... | |
(nullable instancetype) | - initTestPool |
Get an instance of pool isolated from the global shared pool with channels' destroy delay being destroyDelay. More... | |
Class Methods | |
(nullable instancetype) | + NS_UNAVAILABLE |
(nullable instancetype) | + sharedInstance |
Get the global channel pool. More... | |
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.
- (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.