mirror of https://github.com/grpc/grpc-java.git
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:
parent
7ba9ca4861
commit
2db02b52be
|
|
@ -50,6 +50,7 @@ import java.util.Set;
|
||||||
/**
|
/**
|
||||||
* Utility for configuring SslContext for gRPC.
|
* Utility for configuring SslContext for gRPC.
|
||||||
*/
|
*/
|
||||||
|
@ExperimentalApi("Only needed with experimental builders")
|
||||||
public class GrpcSslContexts {
|
public class GrpcSslContexts {
|
||||||
private GrpcSslContexts() {}
|
private GrpcSslContexts() {}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,12 @@
|
||||||
|
|
||||||
package io.grpc.netty;
|
package io.grpc.netty;
|
||||||
|
|
||||||
|
import io.grpc.ExperimentalApi;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Identifies the negotiation used for starting up HTTP/2.
|
* Identifies the negotiation used for starting up HTTP/2.
|
||||||
*/
|
*/
|
||||||
|
@ExperimentalApi("Only used by experimental builders")
|
||||||
public enum NegotiationType {
|
public enum NegotiationType {
|
||||||
/**
|
/**
|
||||||
* Uses TLS ALPN/NPN negotiation, assumes an SSL connection.
|
* Uses TLS ALPN/NPN negotiation, assumes an SSL connection.
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ import javax.annotation.Nullable;
|
||||||
/**
|
/**
|
||||||
* Netty-based server implementation.
|
* Netty-based server implementation.
|
||||||
*/
|
*/
|
||||||
public class NettyServer implements Server {
|
class NettyServer implements Server {
|
||||||
private static final Logger log = Logger.getLogger(Server.class.getName());
|
private static final Logger log = Logger.getLogger(Server.class.getName());
|
||||||
|
|
||||||
private final SocketAddress address;
|
private final SocketAddress address;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue