Class 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
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  io.grpc.netty.ProtocolNegotiator.ClientFactory  
      static interface  io.grpc.netty.ProtocolNegotiator.ServerFactory  
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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)
    • Method Detail

      • scheme

        public io.netty.util.AsciiString scheme()
      • newHandler

        public io.netty.channel.ChannelHandler newHandler​(io.grpc.netty.GrpcHttp2ConnectionHandler grpcHandler)
      • isDirectPathCluster

        private boolean isDirectPathCluster​(java.lang.String clusterName)
      • close

        public void close()