Package io.grpc.alts.internal
Class AltsProtocolNegotiator.GoogleDefaultProtocolNegotiator
java.lang.Object
io.grpc.alts.internal.AltsProtocolNegotiator.GoogleDefaultProtocolNegotiator
- All Implemented Interfaces:
io.grpc.netty.InternalProtocolNegotiator.ProtocolNegotiator
- Enclosing class:
AltsProtocolNegotiator
private static final class AltsProtocolNegotiator.GoogleDefaultProtocolNegotiator
extends Object
implements io.grpc.netty.InternalProtocolNegotiator.ProtocolNegotiator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceio.grpc.netty.ProtocolNegotiator.ClientFactorystatic interfaceio.grpc.netty.ProtocolNegotiator.ServerFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final io.grpc.Attributes.Key<String> private final TsiHandshakerFactoryprivate final AltsProtocolNegotiator.LazyChannelprivate final io.netty.handler.ssl.SslContext -
Constructor Summary
ConstructorsConstructorDescriptionGoogleDefaultProtocolNegotiator(com.google.common.collect.ImmutableList<String> targetServiceAccounts, io.grpc.internal.ObjectPool<io.grpc.Channel> handshakerChannelPool, io.netty.handler.ssl.SslContext sslContext, io.grpc.Attributes.Key<String> clusterNameAttrKey) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private booleanisDirectPathCluster(String clusterName) io.netty.channel.ChannelHandlernewHandler(io.grpc.netty.GrpcHttp2ConnectionHandler grpcHandler) io.netty.util.AsciiStringscheme()
-
Field Details
-
handshakerFactory
-
lazyHandshakerChannel
-
sslContext
private final io.netty.handler.ssl.SslContext sslContext -
clusterNameAttrKey
-
-
Constructor Details
-
GoogleDefaultProtocolNegotiator
-
-
Method Details
-
scheme
public io.netty.util.AsciiString scheme() -
newHandler
public io.netty.channel.ChannelHandler newHandler(io.grpc.netty.GrpcHttp2ConnectionHandler grpcHandler) -
isDirectPathCluster
-
close
public void close()
-