aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/private/GRPCChannel.h
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-10-17 16:59:00 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-10-17 16:59:00 -0700
commit8fef0c87893ceda1c5bb7aaa09ddb8dfaefacbdb (patch)
tree12c9bc7775d2c8544acafafd4671abd22efdc75d /src/objective-c/GRPCClient/private/GRPCChannel.h
parent86ff72bb4736cb9333505baeb324386cfa24bcb9 (diff)
Rewrite the channel pool
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCChannel.h')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCChannel.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannel.h b/src/objective-c/GRPCClient/private/GRPCChannel.h
index 7d5039a8a2..7a40638dc3 100644
--- a/src/objective-c/GRPCClient/private/GRPCChannel.h
+++ b/src/objective-c/GRPCClient/private/GRPCChannel.h
@@ -40,19 +40,22 @@ struct grpc_channel_credentials;
callOptions:(nullable GRPCCallOptions *)callOptions;
/**
+ * Create a channel object with the signature \a config.
+ */
++ (nullable instancetype)createChannelWithConfiguration:(nonnull GRPCChannelConfiguration *)config;
+
+/**
* Get a grpc core call object from this channel.
*/
- (nullable grpc_call *)unmanagedCallWithPath:(nonnull NSString *)path
completionQueue:(nonnull GRPCCompletionQueue *)queue
callOptions:(nonnull GRPCCallOptions *)callOptions;
+- (void)unmanagedCallRef;
+
- (void)unmanagedCallUnref;
-/**
- * Create a channel object with the signature \a config. This function is used for testing only. Use
- * channelWithHost:callOptions: in production.
- */
-+ (nullable instancetype)createChannelWithConfiguration:(nonnull GRPCChannelConfiguration *)config;
+- (void)disconnect;
// TODO (mxyan): deprecate with GRPCCall:closeOpenConnections
+ (void)closeOpenConnections;