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 interface
io.grpc.netty.ProtocolNegotiator.ClientFactory
static interface
io.grpc.netty.ProtocolNegotiator.ServerFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final io.grpc.Attributes.Key
<String> private final TsiHandshakerFactory
private final AltsProtocolNegotiator.LazyChannel
private 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 TypeMethodDescriptionvoid
close()
private boolean
isDirectPathCluster
(String clusterName) io.netty.channel.ChannelHandler
newHandler
(io.grpc.netty.GrpcHttp2ConnectionHandler grpcHandler) io.netty.util.AsciiString
scheme()
-
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()
-