Class GrpcClientProperties.ChannelConfig

java.lang.Object
org.springframework.boot.grpc.client.autoconfigure.GrpcClientProperties.ChannelConfig
Enclosing class:
GrpcClientProperties

public static class GrpcClientProperties.ChannelConfig extends Object
Represents the configuration for a gRPC channel.
Author:
Dave Syer, Chris Bono, Vahid Ramezani
  • Constructor Details

    • ChannelConfig

      public ChannelConfig()
  • Method Details

    • getAddress

      public String getAddress()
    • setAddress

      public void setAddress(String address)
    • getDefaultDeadline

      public @Nullable Duration getDefaultDeadline()
    • setDefaultDeadline

      public void setDefaultDeadline(@Nullable Duration defaultDeadline)
    • getDefaultLoadBalancingPolicy

      public String getDefaultLoadBalancingPolicy()
    • setDefaultLoadBalancingPolicy

      public void setDefaultLoadBalancingPolicy(String defaultLoadBalancingPolicy)
    • isEnableKeepAlive

      public boolean isEnableKeepAlive()
    • setEnableKeepAlive

      public void setEnableKeepAlive(boolean enableKeepAlive)
    • getHealth

    • getIdleTimeout

      public Duration getIdleTimeout()
    • setIdleTimeout

      public void setIdleTimeout(Duration idleTimeout)
    • getKeepAliveTime

      public Duration getKeepAliveTime()
    • setKeepAliveTime

      public void setKeepAliveTime(Duration keepAliveTime)
    • getKeepAliveTimeout

      public Duration getKeepAliveTimeout()
    • setKeepAliveTimeout

      public void setKeepAliveTimeout(Duration keepAliveTimeout)
    • isKeepAliveWithoutCalls

      public boolean isKeepAliveWithoutCalls()
    • setKeepAliveWithoutCalls

      public void setKeepAliveWithoutCalls(boolean keepAliveWithoutCalls)
    • getMaxInboundMessageSize

      public org.springframework.util.unit.DataSize getMaxInboundMessageSize()
    • setMaxInboundMessageSize

      public void setMaxInboundMessageSize(org.springframework.util.unit.DataSize maxInboundMessageSize)
    • getMaxInboundMetadataSize

      public org.springframework.util.unit.DataSize getMaxInboundMetadataSize()
    • setMaxInboundMetadataSize

      public void setMaxInboundMetadataSize(org.springframework.util.unit.DataSize maxInboundMetadataSize)
    • getNegotiationType

      public NegotiationType getNegotiationType()
    • setNegotiationType

      public void setNegotiationType(NegotiationType negotiationType)
    • isSecure

      public boolean isSecure()
    • setSecure

      public void setSecure(boolean secure)
    • getServiceConfig

      public Map<String,Object> getServiceConfig()
    • getSsl

    • getUserAgent

      public @Nullable String getUserAgent()
    • setUserAgent

      public void setUserAgent(@Nullable String userAgent)
    • extractServiceConfig

      public Map<String,Object> extractServiceConfig()
      Extracts the service configuration from the client properties, respecting the yaml lists (e.g. `retryPolicy`).
      Returns:
      the map for the `serviceConfig` property