Reduce advertised Netty API

NettyServer wasn't usable as public, since its constructor was
package-private. So although this reduces our API, it shouldn't actually
impact anyone.

Fixes #1047
This commit is contained in:
Eric Anderson 2015-11-25 14:10:11 -08:00
parent 7ba9ca4861
commit 2db02b52be
3 changed files with 5 additions and 1 deletions

View File

@ -50,6 +50,7 @@ import java.util.Set;
/**
* Utility for configuring SslContext for gRPC.
*/
@ExperimentalApi("Only needed with experimental builders")
public class GrpcSslContexts {
private GrpcSslContexts() {}

View File

@ -31,9 +31,12 @@
package io.grpc.netty;
import io.grpc.ExperimentalApi;
/**
* Identifies the negotiation used for starting up HTTP/2.
*/
@ExperimentalApi("Only used by experimental builders")
public enum NegotiationType {
/**
* Uses TLS ALPN/NPN negotiation, assumes an SSL connection.

View File

@ -59,7 +59,7 @@ import javax.annotation.Nullable;
/**
* Netty-based server implementation.
*/
public class NettyServer implements Server {
class NettyServer implements Server {
private static final Logger log = Logger.getLogger(Server.class.getName());
private final SocketAddress address;