Class GrpcClientProperties.ChannelConfig
java.lang.Object
org.springframework.boot.grpc.client.autoconfigure.GrpcClientProperties.ChannelConfig
- Enclosing class:
GrpcClientProperties
Represents the configuration for a
gRPC channel.- Author:
- Dave Syer, Chris Bono, Vahid Ramezani
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExtracts the service configuration from the client properties, respecting the yaml lists (e.g.@Nullable Durationorg.springframework.util.unit.DataSizeorg.springframework.util.unit.DataSizegetSsl()@Nullable StringbooleanbooleanbooleanisSecure()voidsetAddress(String address) voidsetDefaultDeadline(@Nullable Duration defaultDeadline) voidsetDefaultLoadBalancingPolicy(String defaultLoadBalancingPolicy) voidsetEnableKeepAlive(boolean enableKeepAlive) voidsetIdleTimeout(Duration idleTimeout) voidsetKeepAliveTime(Duration keepAliveTime) voidsetKeepAliveTimeout(Duration keepAliveTimeout) voidsetKeepAliveWithoutCalls(boolean keepAliveWithoutCalls) voidsetMaxInboundMessageSize(org.springframework.util.unit.DataSize maxInboundMessageSize) voidsetMaxInboundMetadataSize(org.springframework.util.unit.DataSize maxInboundMetadataSize) voidsetNegotiationType(NegotiationType negotiationType) voidsetSecure(boolean secure) voidsetUserAgent(@Nullable String userAgent)
-
Constructor Details
-
ChannelConfig
public ChannelConfig()
-
-
Method Details
-
getAddress
-
setAddress
-
getDefaultDeadline
-
setDefaultDeadline
-
getDefaultLoadBalancingPolicy
-
setDefaultLoadBalancingPolicy
-
isEnableKeepAlive
public boolean isEnableKeepAlive() -
setEnableKeepAlive
public void setEnableKeepAlive(boolean enableKeepAlive) -
getHealth
-
getIdleTimeout
-
setIdleTimeout
-
getKeepAliveTime
-
setKeepAliveTime
-
getKeepAliveTimeout
-
setKeepAliveTimeout
-
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
-
setNegotiationType
-
isSecure
public boolean isSecure() -
setSecure
public void setSecure(boolean secure) -
getServiceConfig
-
getSsl
-
getUserAgent
-
setUserAgent
-
extractServiceConfig
-