Class GrpcManagedChannelConfiguration

java.lang.Object
io.micronaut.grpc.channels.GrpcManagedChannelConfiguration
All Implemented Interfaces:
io.micronaut.core.naming.Named
Direct Known Subclasses:
GrpcDefaultManagedChannelConfiguration, GrpcNamedManagedChannelConfiguration

public abstract class GrpcManagedChannelConfiguration extends Object implements io.micronaut.core.naming.Named
A managed channel configuration.
Since:
1.0.0
Author:
graemerocher
  • Field Details

  • Constructor Details

    • GrpcManagedChannelConfiguration

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

    • getName

      public 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 Duration getConnectionTimeout()
      Returns:
      connection timeout for the channel
      Since:
      3.4.0
    • getChannelBuilder

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