@ConfigurationProperties(value="grpc") public class GrpcChannelsProperties extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GLOBAL_PROPERTIES_KEY
The key that will be used for the
GLOBAL properties. |
Constructor and Description |
---|
GrpcChannelsProperties() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
GrpcChannelProperties |
getChannel(String name)
Gets the properties for the given channel.
|
Map<String,GrpcChannelProperties> |
getClient()
Gets the configuration mapping for each client.
|
String |
getDefaultScheme()
Get the default scheme that should be used, if the client doesn't specify a scheme/address.
|
GrpcChannelProperties |
getGlobalChannel()
Gets the global channel properties.
|
int |
hashCode() |
void |
setDefaultScheme(String defaultScheme)
Sets the default scheme to use, if the client doesn't specify a scheme/address.
|
String |
toString() |
public static final String GLOBAL_PROPERTIES_KEY
GLOBAL
properties.public final Map<String,GrpcChannelProperties> getClient()
public GrpcChannelProperties getChannel(String name)
name
- The name of the channel to get the properties for.public final GrpcChannelProperties getGlobalChannel()
public String getDefaultScheme()
setDefaultScheme(String)
public void setDefaultScheme(String defaultScheme)
NameResolver.Factory
. Examples: dns
, discovery
.defaultScheme
- The default scheme to use or null.protected boolean canEqual(Object other)