public class GrpcChannelProperties extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GrpcChannelProperties.Security |
Modifier and Type | Field and Description |
---|---|
static GrpcChannelProperties |
DEFAULT |
Constructor and Description |
---|
GrpcChannelProperties() |
Modifier and Type | Method and Description |
---|---|
Integer |
getMaxInboundMessageSize()
Gets the maximum message size in bytes allowed to be received by the channel.
|
void |
setAddress(String uri)
Sets the target address uri.
|
void |
setHost(List<String> hosts)
Deprecated.
|
void |
setHost(String host)
Deprecated.
|
void |
setPort(List<String> ports)
Deprecated.
|
void |
setPort(String port)
Deprecated.
|
public static final GrpcChannelProperties DEFAULT
public void setAddress(String uri)
uri
- The string representation of an uri to use as target address.@Deprecated public void setHost(String host)
@Deprecated public void setHost(List<String> hosts)
@Deprecated public void setPort(String port)
@Deprecated public void setPort(List<String> ports)
public 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.