diff options
author | Muxi Yan <mxyan@google.com> | 2018-10-20 09:50:36 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-10-20 09:50:36 -0700 |
commit | ef830758cc90924e9fdd5be6a451774fad326db0 (patch) | |
tree | 3aafec41508b944e6c8324e70ec7af1b4a50c365 /src/objective-c/GRPCClient/private/GRPCChannelPool.h | |
parent | c6fc07d384fe11ca4dc59111b61557053ed3dbac (diff) |
Comments to methods of GRPCChannelConfiguration
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCChannelPool.h')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCChannelPool.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannelPool.h b/src/objective-c/GRPCClient/private/GRPCChannelPool.h index e9c2ef2bd1..43e07b9845 100644 --- a/src/objective-c/GRPCClient/private/GRPCChannelPool.h +++ b/src/objective-c/GRPCClient/private/GRPCChannelPool.h @@ -29,12 +29,22 @@ NS_ASSUME_NONNULL_BEGIN @class GRPCChannel; +/** Caching signature of a channel. */ @interface GRPCChannelConfiguration : NSObject<NSCopying> +/** The host that this channel is connected to. */ @property(copy, readonly) NSString *host; + +/** + * Options of the corresponding call. Note that only the channel-related options are of interest to + * this class. + */ @property(strong, readonly) GRPCCallOptions *callOptions; +/** Acquire the factory to generate a new channel with current configurations. */ @property(readonly) id<GRPCChannelFactory> channelFactory; + +/** Acquire the dictionary of channel args with current configurations. */ @property(readonly) NSDictionary *channelArgs; - (nullable instancetype)initWithHost:(NSString *)host callOptions:(GRPCCallOptions *)callOptions; |