api: stabilize ManagedChannelBuilder.useTransportSecurity (#10244)

* api: stabilize ManagedChannelBuilder.useTransportSecurity and add a note in Java doc
This commit is contained in:
sanjaypujare 2023-06-02 15:08:25 -07:00 committed by GitHub
parent 639fd8edf2
commit 6949b8790a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -193,14 +193,16 @@ public abstract class ManagedChannelBuilder<T extends ManagedChannelBuilder<T>>
}
/**
* Makes the client use TLS.
* Makes the client use TLS. Note: this is enabled by default.
*
* <p>It is recommended to use the {@link ChannelCredentials} API
* instead of this method.
*
* @return this
* @throws IllegalStateException if ChannelCredentials were provided when constructing the builder
* @throws UnsupportedOperationException if transport security is not supported.
* @since 1.9.0
*/
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/3713")
public T useTransportSecurity() {
throw new UnsupportedOperationException();
}