@ConfigurationProperties(value="grpc.server")
public class GrpcServerProperties
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GrpcServerProperties.Security
The security configuration for the gRPC server.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANY_IP_ADDRESS
A constant that defines, that the server should listen to any IPv4 and IPv6 address.
|
static java.lang.String |
ANY_IPv4_ADDRESS
A constant that defines, that the server should listen to any IPv4 address.
|
static java.lang.String |
ANY_IPv6_ADDRESS
A constant that defines, that the server should listen to any IPv6 address.
|
Constructor and Description |
---|
GrpcServerProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getMaxInboundMessageSize()
Gets the maximum message size in bytes allowed to be received by the server.
|
int |
getPort()
Gets the port the server should listen on.
|
void |
setMaxMessageSize(int maxMessageSize)
Deprecated.
Use the maxInboundMessageSize property instead.
|
public static final java.lang.String ANY_IP_ADDRESS
public static final java.lang.String ANY_IPv4_ADDRESS
public static final java.lang.String ANY_IPv6_ADDRESS
public int getPort()
9090
. If set to 0
a random available port
will be selected and used.@Deprecated public void setMaxMessageSize(int maxMessageSize)
maxMessageSize
- The max message size to use.public java.lang.Integer getMaxInboundMessageSize()
null
) then it
will default to DEFAULT_MAX_MESSAGE_SIZE
. If set to -1
then it
will use Integer.MAX_VALUE
as limit.