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