Class GrpcManagedChannelConfiguration

    • Field Detail

      • CONNECT_ON_STARTUP

        public static final java.lang.String CONNECT_ON_STARTUP
        See Also:
        Constant Field Values
      • CONNECTION_TIMEOUT

        public static final java.lang.String CONNECTION_TIMEOUT
        See Also:
        Constant Field Values
      • name

        protected final java.lang.String name
      • channelBuilder

        @ConfigurationBuilder(prefixes={"use",""},
                              allowZeroArgs=true)
        protected final io.grpc.netty.NettyChannelBuilder channelBuilder
    • Constructor Detail

      • GrpcManagedChannelConfiguration

        protected GrpcManagedChannelConfiguration​(java.lang.String name,
                                                  io.micronaut.context.env.Environment env,
                                                  java.util.concurrent.ExecutorService executorService)
        Constructors a new managed channel configuration.
        Parameters:
        name - The name
        env - The environment
        executorService - The executor service to use
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface io.micronaut.core.naming.Named
        Returns:
        name of the channel
      • isConnectOnStartup

        public boolean isConnectOnStartup()
        Returns:
        true if connect on startup is set for channel
        Since:
        3.4.0
      • getConnectionTimeout

        public java.time.Duration getConnectionTimeout()
        Returns:
        connection timeout for the channel
        Since:
        3.4.0
      • getChannelBuilder

        public io.grpc.netty.NettyChannelBuilder getChannelBuilder()
        Returns:
        The channel builder.