Class GrpcClientProperties
java.lang.Object
org.springframework.boot.grpc.client.autoconfigure.GrpcClientProperties
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.EnvironmentAware, VirtualTargets
@ConfigurationProperties(prefix="spring.grpc.client")
public class GrpcClientProperties
extends Object
implements org.springframework.context.EnvironmentAware, VirtualTargets
Configuration properties for the gRPC client side.
- Author:
- Dave Syer, Chris Bono, Vahid Ramezani
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the configuration for agRPC channel. -
Field Summary
Fields inherited from interface VirtualTargets
AUTHORITY_PATTERN, DEFAULT -
Method Summary
Modifier and TypeMethodDescriptiongetChannel(String name) Gets the configured channel with the given name.Class<? extends StubFactory<?>> voidsetDefaultStubFactory(Class<? extends StubFactory<?>> defaultStubFactory) voidsetEnvironment(org.springframework.core.env.Environment environment)
-
Method Details
-
getChannels
-
getDefaultChannel
-
getDefaultStubFactory
-
setDefaultStubFactory
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
getChannel
Gets the configured channel with the given name. If no channel is configured for the specified name then one is created using the default channel as a template.- Parameters:
name- the name of the channel- Returns:
- the configured channel if found, or a newly created channel using the default channel as a template
-
getTarget
- Specified by:
getTargetin interfaceVirtualTargets
-