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 java.lang.Object implements io.grpc.netty.InternalProtocolNegotiator.ProtocolNegotiator
-
-
Field Summary
Fields Modifier and Type Field Description private io.grpc.Attributes.Key<java.lang.String>
clusterNameAttrKey
private TsiHandshakerFactory
handshakerFactory
private AltsProtocolNegotiator.LazyChannel
lazyHandshakerChannel
private io.netty.handler.ssl.SslContext
sslContext
-
Constructor Summary
Constructors Constructor Description GoogleDefaultProtocolNegotiator(com.google.common.collect.ImmutableList<java.lang.String> targetServiceAccounts, io.grpc.internal.ObjectPool<io.grpc.Channel> handshakerChannelPool, io.netty.handler.ssl.SslContext sslContext, io.grpc.Attributes.Key<java.lang.String> clusterNameAttrKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
private boolean
isDirectPathCluster(java.lang.String clusterName)
io.netty.channel.ChannelHandler
newHandler(io.grpc.netty.GrpcHttp2ConnectionHandler grpcHandler)
io.netty.util.AsciiString
scheme()
-
-
-
Field Detail
-
handshakerFactory
private final TsiHandshakerFactory handshakerFactory
-
lazyHandshakerChannel
private final AltsProtocolNegotiator.LazyChannel lazyHandshakerChannel
-
sslContext
private final io.netty.handler.ssl.SslContext sslContext
-
clusterNameAttrKey
@Nullable private final io.grpc.Attributes.Key<java.lang.String> clusterNameAttrKey
-
-
Constructor Detail
-
GoogleDefaultProtocolNegotiator
GoogleDefaultProtocolNegotiator(com.google.common.collect.ImmutableList<java.lang.String> targetServiceAccounts, io.grpc.internal.ObjectPool<io.grpc.Channel> handshakerChannelPool, io.netty.handler.ssl.SslContext sslContext, @Nullable io.grpc.Attributes.Key<java.lang.String> clusterNameAttrKey)
-
-