Skip to content

Commit 00b8db6

Browse files
feat: add channel pooling (#9692)
stack-info: PR: #9692, branch: igorbernstein2/stack/5
1 parent 44fd58c commit 00b8db6

File tree

12 files changed

+1948
-20
lines changed

12 files changed

+1948
-20
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright 2024 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// Copied from
18+
// https://github.com/googleapis/sdk-platform-java/blob/a333b0709023c971f12a85e5287b6d77d1b57c48/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/ChannelFactory.java
19+
// Changes:
20+
// - package name
21+
// - removed InternalApi annotation
22+
23+
package com.google.cloud.bigtable.examples.proxy.channelpool;
24+
25+
import io.grpc.ManagedChannel;
26+
import java.io.IOException;
27+
28+
/**
29+
* This interface represents a factory for creating one ManagedChannel
30+
*
31+
* <p>This is public only for technical reasons, for advanced usage.
32+
*/
33+
public interface ChannelFactory {
34+
ManagedChannel createSingleChannel() throws IOException;
35+
}

0 commit comments

Comments
 (0)