Class GrpcServerProperties
java.lang.Object
org.springframework.boot.grpc.server.autoconfigure.GrpcServerProperties
@ConfigurationProperties(prefix="spring.grpc.server")
public class GrpcServerProperties
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringServer should listen to any IPv4 and IPv6 address. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the configured address or an address created from the configured host and port if no address has been set.@Nullable StringgetHost()org.springframework.util.unit.DataSizeorg.springframework.util.unit.DataSizeintgetPort()getSsl()voidsetAddress(@Nullable String address) voidvoidsetMaxInboundMessageSize(org.springframework.util.unit.DataSize maxInboundMessageSize) voidsetMaxInboundMetadataSize(org.springframework.util.unit.DataSize maxInboundMetadataSize) voidsetPort(int port) voidsetShutdownGracePeriod(Duration shutdownGracePeriod)
-
Field Details
-
ANY_IP_ADDRESS
Server should listen to any IPv4 and IPv6 address.- See Also:
-
-
Constructor Details
-
GrpcServerProperties
public GrpcServerProperties()
-
-
Method Details
-
getAddress
-
setAddress
-
determineAddress
Returns the configured address or an address created from the configured host and port if no address has been set.- Returns:
- the address to bind to
-
getHost
-
setHost
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
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) -
getShutdownGracePeriod
-
setShutdownGracePeriod
-
getHealth
-
getInprocess
-
getKeepAlive
-
getSsl
-