类 OptionalTlsProtocolNegotiator
- java.lang.Object
-
- com.alibaba.nacos.core.remote.grpc.OptionalTlsProtocolNegotiator
-
- 所有已实现的接口:
io.grpc.netty.shaded.io.grpc.netty.InternalProtocolNegotiator.ProtocolNegotiator
public class OptionalTlsProtocolNegotiator extends java.lang.Object implements io.grpc.netty.shaded.io.grpc.netty.InternalProtocolNegotiator.ProtocolNegotiatorsupport the tls and plain protocol one the same port.- 作者:
- githubcheng2978.
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 classOptionalTlsProtocolNegotiator.PortUnificationServerHandlerstatic interfaceio.grpc.netty.shaded.io.grpc.netty.ProtocolNegotiator.ClientFactorystatic interfaceio.grpc.netty.shaded.io.grpc.netty.ProtocolNegotiator.ServerFactory
-
字段概要
字段 修饰符和类型 字段 说明 private static intMAGIC_VALUEprivate io.grpc.netty.shaded.io.netty.handler.ssl.SslContextsslContext
-
构造器概要
构造器 构造器 说明 OptionalTlsProtocolNegotiator(io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()private io.grpc.netty.shaded.io.grpc.netty.ProtocolNegotiationEventgetDefPne()io.grpc.netty.shaded.io.netty.channel.ChannelHandlernewHandler(io.grpc.netty.shaded.io.grpc.netty.GrpcHttp2ConnectionHandler grpcHttp2ConnectionHandler)io.grpc.netty.shaded.io.netty.util.AsciiStringscheme()
-
-
-
字段详细资料
-
MAGIC_VALUE
private static final int MAGIC_VALUE
- 另请参阅:
- 常量字段值
-
sslContext
private io.grpc.netty.shaded.io.netty.handler.ssl.SslContext sslContext
-
-
方法详细资料
-
scheme
public io.grpc.netty.shaded.io.netty.util.AsciiString scheme()
-
newHandler
public io.grpc.netty.shaded.io.netty.channel.ChannelHandler newHandler(io.grpc.netty.shaded.io.grpc.netty.GrpcHttp2ConnectionHandler grpcHttp2ConnectionHandler)
-
close
public void close()
-
getDefPne
private io.grpc.netty.shaded.io.grpc.netty.ProtocolNegotiationEvent getDefPne()
-
-