Skip to content

Commit e562a05

Browse files
authored
Remove Unused experimental API ManagedChannelBuilder.enableFullStreamDecompression. (grpc#10744)
1 parent 692696e commit e562a05

File tree

6 files changed

+0
-51
lines changed

6 files changed

+0
-51
lines changed

api/src/main/java/io/grpc/ForwardingChannelBuilder.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,6 @@ public T defaultLoadBalancingPolicy(String policy) {
128128
return thisT();
129129
}
130130

131-
@Override
132-
public T enableFullStreamDecompression() {
133-
delegate().enableFullStreamDecompression();
134-
return thisT();
135-
}
136-
137131
@Override
138132
public T decompressorRegistry(DecompressorRegistry registry) {
139133
delegate().decompressorRegistry(registry);

api/src/main/java/io/grpc/ForwardingChannelBuilder2.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,6 @@ public T defaultLoadBalancingPolicy(String policy) {
131131
return thisT();
132132
}
133133

134-
@Override
135-
public T enableFullStreamDecompression() {
136-
delegate().enableFullStreamDecompression();
137-
return thisT();
138-
}
139-
140134
@Override
141135
public T decompressorRegistry(DecompressorRegistry registry) {
142136
delegate().decompressorRegistry(registry);

api/src/main/java/io/grpc/ManagedChannelBuilder.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -258,22 +258,6 @@ public T defaultLoadBalancingPolicy(String policy) {
258258
throw new UnsupportedOperationException();
259259
}
260260

261-
/**
262-
* Enables full-stream decompression of inbound streams. This will cause the channel's outbound
263-
* headers to advertise support for GZIP compressed streams, and gRPC servers which support the
264-
* feature may respond with a GZIP compressed stream.
265-
*
266-
* <p>EXPERIMENTAL: This method is here to enable an experimental feature, and may be changed or
267-
* removed once the feature is stable.
268-
*
269-
* @throws UnsupportedOperationException if unsupported
270-
* @since 1.7.0
271-
*/
272-
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/3399")
273-
public T enableFullStreamDecompression() {
274-
throw new UnsupportedOperationException();
275-
}
276-
277261
/**
278262
* Set the decompression registry for use in the channel. This is an advanced API call and
279263
* shouldn't be used unless you are using custom message encoding. The default supported

core/src/main/java/io/grpc/internal/ManagedChannelImplBuilder.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -409,12 +409,6 @@ public ManagedChannelImplBuilder defaultLoadBalancingPolicy(String policy) {
409409
return this;
410410
}
411411

412-
@Override
413-
public ManagedChannelImplBuilder enableFullStreamDecompression() {
414-
this.fullStreamDecompression = true;
415-
return this;
416-
}
417-
418412
@Override
419413
public ManagedChannelImplBuilder decompressorRegistry(DecompressorRegistry registry) {
420414
if (registry != null) {

core/src/test/java/io/grpc/internal/ManagedChannelImplBuilderTest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,6 @@ public void fullStreamDecompression_default() {
257257
assertFalse(builder.fullStreamDecompression);
258258
}
259259

260-
@Test
261-
public void fullStreamDecompression_enabled() {
262-
assertEquals(builder, builder.enableFullStreamDecompression());
263-
assertTrue(builder.fullStreamDecompression);
264-
}
265-
266260
@Test
267261
public void decompressorRegistry_default() {
268262
assertNotNull(builder.decompressorRegistry);

interop-testing/src/main/java/io/grpc/testing/integration/TestServiceClient.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ public static void main(String[] args) throws Exception {
8888
private String defaultServiceAccount;
8989
private String serviceAccountKeyFile;
9090
private String oauthScope;
91-
private boolean fullStreamDecompression;
9291
private int localHandshakerPort = -1;
9392
private Map<String, ?> serviceConfig = null;
9493
private int soakIterations = 10;
@@ -159,8 +158,6 @@ void parseArgs(String[] args) throws Exception {
159158
serviceAccountKeyFile = value;
160159
} else if ("oauth_scope".equals(key)) {
161160
oauthScope = value;
162-
} else if ("full_stream_decompression".equals(key)) {
163-
fullStreamDecompression = Boolean.parseBoolean(value);
164161
} else if ("local_handshaker_port".equals(key)) {
165162
localHandshakerPort = Integer.parseInt(value);
166163
} else if ("service_config_json".equals(key)) {
@@ -226,8 +223,6 @@ void parseArgs(String[] args) throws Exception {
226223
+ "\n --service_account_key_file Path to service account json key file."
227224
+ c.serviceAccountKeyFile
228225
+ "\n --oauth_scope Scope for OAuth tokens. Default " + c.oauthScope
229-
+ "\n --full_stream_decompression Enable full-stream decompression. Default "
230-
+ c.fullStreamDecompression
231226
+ "\n --service_config_json=SERVICE_CONFIG_JSON"
232227
+ "\n Disables service config lookups and sets the provided "
233228
+ "\n string as the default service config."
@@ -638,9 +633,6 @@ protected ManagedChannelBuilder<?> createChannelBuilder() {
638633
if (serverHostOverride != null) {
639634
nettyBuilder.overrideAuthority(serverHostOverride);
640635
}
641-
if (fullStreamDecompression) {
642-
nettyBuilder.enableFullStreamDecompression();
643-
}
644636
// Disable the default census stats interceptor, use testing interceptor instead.
645637
InternalNettyChannelBuilder.setStatsEnabled(nettyBuilder, false);
646638
if (serviceConfig != null) {
@@ -664,9 +656,6 @@ protected ManagedChannelBuilder<?> createChannelBuilder() {
664656
okBuilder.overrideAuthority(
665657
GrpcUtil.authorityFromHostAndPort(serverHostOverride, serverPort));
666658
}
667-
if (fullStreamDecompression) {
668-
okBuilder.enableFullStreamDecompression();
669-
}
670659
// Disable the default census stats interceptor, use testing interceptor instead.
671660
InternalOkHttpChannelBuilder.setStatsEnabled(okBuilder, false);
672661
if (serviceConfig != null) {

0 commit comments

Comments
 (0)