Skip to content

Commit c5cefff

Browse files
committed
add comments
1 parent 1144d49 commit c5cefff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

google/cloud/bigtable/internal/bigtable_stub_factory.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,13 @@ GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
5858
using BaseBigtableStubFactory = std::function<std::shared_ptr<BigtableStub>(
5959
std::shared_ptr<grpc::Channel>)>;
6060

61+
/// Creates a static pool of stubs that use a round-robin strategy to select.
6162
std::shared_ptr<BigtableStub> CreateBigtableStubRoundRobin(
6263
Options const& options, std::function<std::shared_ptr<BigtableStub>(int)>
6364
refreshing_channel_stub_factory);
6465

66+
/// Creates a dynamic pool of stubs that selects the least used from a random
67+
/// pair of stubs.
6568
std::shared_ptr<BigtableStub> CreateBigtableStubRandomTwoLeastUsed(
6669
std::shared_ptr<internal::GrpcAuthenticationStrategy> auth,
6770
std::shared_ptr<internal::CompletionQueueImpl> cq_impl,

0 commit comments

Comments
 (0)