Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- AbstractChannelFactory<T extends ManagedChannelBuilder<T>> - Class in net.devh.boot.grpc.client.channelfactory
-
This abstract channel factory contains some shared code for other
GrpcChannelFactory
s. - AbstractChannelFactory(GrpcChannelsProperties, GlobalClientInterceptorRegistry, List<GrpcChannelConfigurer>) - Constructor for class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
-
Creates a new AbstractChannelFactory with eager initialized references.
- andThen(BiConsumer<? super ManagedChannelBuilder<?>, ? super String>) - Method in interface net.devh.boot.grpc.client.channelfactory.GrpcChannelConfigurer
- AnnotationGlobalClientInterceptorConfigurer - Class in net.devh.boot.grpc.client.interceptor
-
Automatically find and configure
annotated
globalClientInterceptor
s. - AnnotationGlobalClientInterceptorConfigurer(ApplicationContext) - Constructor for class net.devh.boot.grpc.client.interceptor.AnnotationGlobalClientInterceptorConfigurer
-
Creates a new AnnotationGlobalClientInterceptorConfigurer.
- AsyncStubFactory - Class in net.devh.boot.grpc.client.stubfactory
- AsyncStubFactory() - Constructor for class net.devh.boot.grpc.client.stubfactory.AsyncStubFactory
- authorizationHeader(String) - Static method in class net.devh.boot.grpc.client.security.CallCredentialsHelper
-
Creates new call credentials with the given static authorization information.
- authorizationHeader(Supplier<String>) - Static method in class net.devh.boot.grpc.client.security.CallCredentialsHelper
-
Creates new call credentials with the given authorization information source.
- authorizationHeaders(Metadata) - Static method in class net.devh.boot.grpc.client.security.CallCredentialsHelper
-
Creates new call credentials with the given static authorization headers.
- authorizationHeaders(Supplier<Metadata>) - Static method in class net.devh.boot.grpc.client.security.CallCredentialsHelper
-
Creates new call credentials with the given authorization headers source.
B
- basicAuth(String, String) - Static method in class net.devh.boot.grpc.client.security.CallCredentialsHelper
-
Creates new call credentials with the given username and password for basic auth.
- beanName() - Element in annotation interface net.devh.boot.grpc.client.inject.GrpcClientBean
-
The name of the bean to create.
- bearerAuth(String) - Static method in class net.devh.boot.grpc.client.security.CallCredentialsHelper
-
Creates new call credentials with the given token for bearer auth.
- bearerAuth(Supplier<String>) - Static method in class net.devh.boot.grpc.client.security.CallCredentialsHelper
-
Creates new call credentials with the given token source for bearer auth.
- BlockingStubFactory - Class in net.devh.boot.grpc.client.stubfactory
- BlockingStubFactory() - Constructor for class net.devh.boot.grpc.client.stubfactory.BlockingStubFactory
C
- CallCredentialsHelper - Class in net.devh.boot.grpc.client.security
-
Helper class with useful methods to create and configure some commonly used authentication schemes such as
Basic-Auth
. - canEqual(Object) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
- canEqual(Object) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
- canEqual(Object) - Method in class net.devh.boot.grpc.client.config.GrpcChannelsProperties
- channelConfigurers - Variable in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
- clazz() - Element in annotation interface net.devh.boot.grpc.client.inject.GrpcClientBean
-
The type of the bean to create.
- client() - Element in annotation interface net.devh.boot.grpc.client.inject.GrpcClientBean
-
The client definition used to create the channel and grab all properties.
- close() - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
-
Closes this channel factory and the channels created by this instance.
- close() - Method in interface net.devh.boot.grpc.client.channelfactory.GrpcChannelFactory
- close() - Method in class net.devh.boot.grpc.client.channelfactory.InProcessOrAlternativeChannelFactory
- configure(T, String) - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
-
Configures the given channel builder.
- configureAcceptedServerCertificates(GrpcChannelProperties.Security, SslContextBuilder) - Static method in class net.devh.boot.grpc.client.channelfactory.ShadedNettyChannelFactory
-
Configures the server certificates accepted by the ssl context.
- configureAcceptedServerCertificates(GrpcChannelProperties.Security, SslContextBuilder) - Static method in class net.devh.boot.grpc.client.channelfactory.NettyChannelFactory
-
Configures the server certificates accepted by the ssl context.
- configureClientInterceptors(List<ClientInterceptor>) - Method in class net.devh.boot.grpc.client.interceptor.AnnotationGlobalClientInterceptorConfigurer
- configureClientInterceptors(List<ClientInterceptor>) - Method in interface net.devh.boot.grpc.client.interceptor.GlobalClientInterceptorConfigurer
-
Configures the given list of client interceptors, possibly adding new elements, removing unwanted elements, or reordering the existing ones.
- configureCompression(T, String) - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
-
Configures the compression options that should be used by the channel.
- configureKeepAlive(T, String) - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
-
Configures the keep alive options that should be used by the channel.
- configureLimits(T, String) - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
-
Configures limits such as max message sizes that should be used by the channel.
- configureProvidedClientCertificate(GrpcChannelProperties.Security, SslContextBuilder) - Static method in class net.devh.boot.grpc.client.channelfactory.ShadedNettyChannelFactory
-
Configures the client certificate provided by the ssl context.
- configureProvidedClientCertificate(GrpcChannelProperties.Security, SslContextBuilder) - Static method in class net.devh.boot.grpc.client.channelfactory.NettyChannelFactory
-
Configures the client certificate provided by the ssl context.
- configureSecurity(InProcessChannelBuilder, String) - Method in class net.devh.boot.grpc.client.channelfactory.InProcessChannelFactory
- configureSecurity(NettyChannelBuilder, String) - Method in class net.devh.boot.grpc.client.channelfactory.NettyChannelFactory
- configureSecurity(NettyChannelBuilder, String) - Method in class net.devh.boot.grpc.client.channelfactory.ShadedNettyChannelFactory
- configureSecurity(T, String) - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
-
Configures the security options that should be used by the channel.
- configureUserAgent(T, String) - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
-
Configures custom User-Agent for the channel.
- copyDefaultsFrom(GrpcChannelProperties) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Copies the defaults from the given configuration.
- copyDefaultsFrom(GrpcChannelProperties.Security) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Copies the defaults from the given configuration.
- createChannel(String) - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
- createChannel(String) - Method in interface net.devh.boot.grpc.client.channelfactory.GrpcChannelFactory
-
Creates a new channel for the given service name.
- createChannel(String, List<ClientInterceptor>) - Method in interface net.devh.boot.grpc.client.channelfactory.GrpcChannelFactory
-
Creates a new channel for the given service name.
- createChannel(String, List<ClientInterceptor>, boolean) - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
- createChannel(String, List<ClientInterceptor>, boolean) - Method in interface net.devh.boot.grpc.client.channelfactory.GrpcChannelFactory
-
Creates a new channel for the given service name.
- createChannel(String, List<ClientInterceptor>, boolean) - Method in class net.devh.boot.grpc.client.channelfactory.InProcessOrAlternativeChannelFactory
- createStub(Class<? extends AbstractStub<?>>, Channel) - Method in class net.devh.boot.grpc.client.stubfactory.FallbackStubFactory
- createStub(Class<? extends AbstractStub<?>>, Channel) - Method in class net.devh.boot.grpc.client.stubfactory.StandardJavaGrpcStubFactory
- createStub(Class<? extends AbstractStub<?>>, Channel) - Method in interface net.devh.boot.grpc.client.stubfactory.StubFactory
-
Creates a stub of the given type.
D
- destroy() - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientResolverFactory
-
Cleans up the name resolvers.
- destroy() - Method in class net.devh.boot.grpc.client.nameresolver.NameResolverRegistration
- discoverServers() - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver
-
Discovers matching service instances.
- DISCOVERY_INSTANCE_ID_KEY - Static variable in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientResolverFactory
-
A key for the
instance id
. - DISCOVERY_SCHEME - Static variable in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientResolverFactory
-
The constant containing the scheme that will be used by this factory.
- DISCOVERY_SERVICE_NAME_KEY - Static variable in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientResolverFactory
-
A key for the service name used to related
ServiceInstance
s from theDiscoveryClient
. - DiscoveryClientNameResolver - Class in net.devh.boot.grpc.client.nameresolver
-
The DiscoveryClientNameResolver resolves the service hosts and their associated gRPC port using the channel's name and spring's cloud
DiscoveryClient
. - DiscoveryClientNameResolver(String, DiscoveryClient, NameResolver.Args, SharedResourceHolder.Resource<Executor>, Consumer<DiscoveryClientNameResolver>) - Constructor for class net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver
-
Creates a new DiscoveryClientNameResolver.
- DiscoveryClientResolverFactory - Class in net.devh.boot.grpc.client.nameresolver
-
A name resolver factory that will create a
DiscoveryClientNameResolver
based on the target uri. - DiscoveryClientResolverFactory(DiscoveryClient) - Constructor for class net.devh.boot.grpc.client.nameresolver.DiscoveryClientResolverFactory
-
Creates a new discovery client based name resolver factory.
E
- encodeBasicAuth(String, String) - Static method in class net.devh.boot.grpc.client.security.CallCredentialsHelper
-
Encodes the given username and password as basic auth.
- equals(Object) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
- equals(Object) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
- equals(Object) - Method in class net.devh.boot.grpc.client.config.GrpcChannelsProperties
F
- FallbackStubFactory - Class in net.devh.boot.grpc.client.stubfactory
-
The StubFactory which tries to find a suitable factory method or constructor as a last resort.
- FallbackStubFactory() - Constructor for class net.devh.boot.grpc.client.stubfactory.FallbackStubFactory
- fixedCredentialsStubTransformer(CallCredentials) - Static method in class net.devh.boot.grpc.client.security.CallCredentialsHelper
-
Creates a new
StubTransformer
that will assign the given credentials to the givenAbstractStub
. - FutureStubFactory - Class in net.devh.boot.grpc.client.stubfactory
- FutureStubFactory() - Constructor for class net.devh.boot.grpc.client.stubfactory.FutureStubFactory
G
- getAddress() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Gets the target address uri.
- getAttemptCounter() - Method in class net.devh.boot.grpc.client.metrics.MetricsClientMeters
- getAttributes(ServiceInstance) - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver
-
Gets the attributes from the service instance for later use in a load balancer.
- getAuthorityOverride() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Gets the authority to check for during server certificate verification.
- getCertificateChain() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Gets the resource containing the SSL certificate chain.
- getChannel(String) - Method in class net.devh.boot.grpc.client.config.GrpcChannelsProperties
-
Gets the properties for the given channel.
- getCiphers() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Gets the cipher suite accepted for secure connections (in the order of preference).
- getClient() - Method in class net.devh.boot.grpc.client.config.GrpcChannelsProperties
-
Gets the configuration mapping for each client.
- getClientAttemptDuration() - Method in class net.devh.boot.grpc.client.metrics.MetricsClientMeters
- getClientCallDuration() - Method in class net.devh.boot.grpc.client.metrics.MetricsClientMeters
- getClientInterceptorBeans() - Method in class net.devh.boot.grpc.client.interceptor.AnnotationGlobalClientInterceptorConfigurer
-
Helper method used to get the
GrpcGlobalClientInterceptor
annotatedClientInterceptor
s from the application context. - getClientInterceptors() - Method in class net.devh.boot.grpc.client.interceptor.GlobalClientInterceptorRegistry
-
Gets the immutable list of global server interceptors.
- getConnectivityState() - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
- getConnectivityState() - Method in interface net.devh.boot.grpc.client.channelfactory.GrpcChannelFactory
-
Gets an unmodifiable map that contains the names of the created channel with their current
ConnectivityState
. - getConnectivityState() - Method in class net.devh.boot.grpc.client.channelfactory.InProcessOrAlternativeChannelFactory
- getDefaultLoadBalancingPolicy() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Gets the default load balancing policy this channel should use.
- getDefaultScheme() - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
-
Gets the default scheme that should be used for a client channel's target if no address is specified for a client's channel properties.
- getDefaultScheme() - Method in class net.devh.boot.grpc.client.config.GrpcChannelsProperties
-
Get the default scheme that should be used, if the client doesn't specify a scheme/address.
- getDefaultScheme() - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientResolverFactory
- getDefaultScheme() - Method in class net.devh.boot.grpc.client.nameresolver.StaticNameResolverProvider
- getFactoryMethodName() - Method in class net.devh.boot.grpc.client.stubfactory.AsyncStubFactory
- getFactoryMethodName() - Method in class net.devh.boot.grpc.client.stubfactory.BlockingStubFactory
- getFactoryMethodName() - Method in class net.devh.boot.grpc.client.stubfactory.FutureStubFactory
- getFactoryMethodName() - Method in class net.devh.boot.grpc.client.stubfactory.StandardJavaGrpcStubFactory
-
Derives the name of the factory method from the given stub type.
- getGlobalChannel() - Method in class net.devh.boot.grpc.client.config.GrpcChannelsProperties
-
Gets the global channel properties.
- getGrpcPort(ServiceInstance) - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver
-
Extracts the gRPC server port from the given service instance.
- getImmediateConnectTimeout() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Get the connection timeout at application startup.
- getKeepAliveTime() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Gets the default delay before we send a keepAlive.
- getKeepAliveTimeout() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
The default timeout for a keepAlives ping request.
- getKeyStore() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
The resource containing the key store.
- getKeyStoreFormat() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
The format of the
GrpcChannelProperties.Security.keyStore
. - getKeyStorePassword() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Password for the key store.
- getMaxInboundMessageSize() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Gets the maximum message size allowed to be received by the channel.
- getName() - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver
-
Gets the name of the service to get the instances of.
- getNegotiationType() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Gets the negotiation type to use on the connection.
- getOrder() - Method in class net.devh.boot.grpc.client.interceptor.OrderedClientInterceptor
-
Deprecated.
- getPrivateKey() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Gets resource containing the private key.
- getPrivateKeyPassword() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Gets the password for the private key.
- getPropertiesFor(String) - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
-
Gets the channel properties for the given client name.
- getProtocols() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Gets the TLS protocols accepted for secure connections
- getReceivedMessageSizeDistribution() - Method in class net.devh.boot.grpc.client.metrics.MetricsClientMeters
- getSecurity() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Gets the options for transport security.
- getSentMessageSizeDistribution() - Method in class net.devh.boot.grpc.client.metrics.MetricsClientMeters
- getServiceAuthority() - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver
- getServiceAuthority() - Method in class net.devh.boot.grpc.client.nameresolver.StaticNameResolver
- getShutdownGracePeriod() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Gets the time to wait for the channel to gracefully shutdown.
- getTrustCertCollection() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Gets the resource containing the the trusted certificate collection.
- getTrustStore() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
The resource containing the trust store.
- getTrustStoreFormat() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
The format of the
GrpcChannelProperties.Security.trustStore
. - getTrustStorePassword() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Password for the trust store.
- getUserAgent() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Get custom User-Agent for the channel.
- GLOBAL_PROPERTIES_KEY - Static variable in class net.devh.boot.grpc.client.config.GrpcChannelsProperties
-
The key that will be used for the
GLOBAL
properties. - GlobalClientInterceptorConfigurer - Interface in net.devh.boot.grpc.client.interceptor
-
A bean that can be used to configure global
ClientInterceptor
s. - globalClientInterceptorRegistry - Variable in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
- GlobalClientInterceptorRegistry - Class in net.devh.boot.grpc.client.interceptor
-
The global client interceptor registry keeps references to all
ClientInterceptor
s that should be registered to all client channels. - GlobalClientInterceptorRegistry(ApplicationContext) - Constructor for class net.devh.boot.grpc.client.interceptor.GlobalClientInterceptorRegistry
-
Creates a new GlobalClientInterceptorRegistry.
- GrpcChannelConfigurer - Interface in net.devh.boot.grpc.client.channelfactory
-
A configurer for
ManagedChannelBuilder
s which can be used byGrpcChannelFactory
to customize the created channels. - GrpcChannelFactory - Interface in net.devh.boot.grpc.client.channelfactory
-
This factory creates grpc
Channel
s for a given service name. - grpcChannelHealthIndicator(GrpcChannelFactory) - Method in class net.devh.boot.grpc.client.autoconfigure.GrpcClientHealthAutoConfiguration
-
Creates a HealthIndicator based on the channels'
ConnectivityState
s from the underlyingGrpcChannelFactory
. - GrpcChannelProperties - Class in net.devh.boot.grpc.client.config
-
The channel properties for a single named gRPC channel or service reference.
- GrpcChannelProperties() - Constructor for class net.devh.boot.grpc.client.config.GrpcChannelProperties
- GrpcChannelProperties.Security - Class in net.devh.boot.grpc.client.config
-
A container with options for the channel's transport security.
- GrpcChannelsProperties - Class in net.devh.boot.grpc.client.config
-
A container for named channel properties.
- GrpcChannelsProperties() - Constructor for class net.devh.boot.grpc.client.config.GrpcChannelsProperties
- GrpcClient - Annotation Interface in net.devh.boot.grpc.client.inject
-
An annotation for fields of type
Channel
or subclasses ofAbstractStub
/gRPC client services. - GrpcClientAutoConfiguration - Class in net.devh.boot.grpc.client.autoconfigure
-
The auto configuration used by Spring-Boot that contains all beans to create and inject grpc clients into beans.
- GrpcClientAutoConfiguration() - Constructor for class net.devh.boot.grpc.client.autoconfigure.GrpcClientAutoConfiguration
- GrpcClientBean - Annotation Interface in net.devh.boot.grpc.client.inject
-
Annotation that can be added to
Configuration
classes to add aGrpcClient
bean to theApplicationContext
. - GrpcClientBeanPostProcessor - Class in net.devh.boot.grpc.client.inject
-
This
BeanPostProcessor
searches for fields and methods in beans that are annotated withGrpcClient
and sets them. - GrpcClientBeanPostProcessor(ApplicationContext) - Constructor for class net.devh.boot.grpc.client.inject.GrpcClientBeanPostProcessor
-
Creates a new GrpcClientBeanPostProcessor with the given ApplicationContext.
- GrpcClientBeans - Annotation Interface in net.devh.boot.grpc.client.inject
-
Annotation that can be added to
Configuration
classes to addGrpcClient
beans to theApplicationContext
. - GrpcClientConstructorInjectionBeanFactoryPostProcessor - Class in net.devh.boot.grpc.client.inject
-
BeanFactoryPostProcessor
that searches the bean definitions forGrpcClient
annotations on constructors and factory methods. - GrpcClientConstructorInjectionBeanFactoryPostProcessor() - Constructor for class net.devh.boot.grpc.client.inject.GrpcClientConstructorInjectionBeanFactoryPostProcessor
- GrpcClientHealthAutoConfiguration - Class in net.devh.boot.grpc.client.autoconfigure
-
Auto configuration class for Spring-Boot.
- GrpcClientHealthAutoConfiguration() - Constructor for class net.devh.boot.grpc.client.autoconfigure.GrpcClientHealthAutoConfiguration
- GrpcClientMetricAutoConfiguration - Class in net.devh.boot.grpc.client.autoconfigure
-
Auto configuration class for Spring-Boot.
- GrpcClientMetricAutoConfiguration() - Constructor for class net.devh.boot.grpc.client.autoconfigure.GrpcClientMetricAutoConfiguration
- GrpcClientMicrometerTraceAutoConfiguration - Class in net.devh.boot.grpc.client.autoconfigure
-
The configuration used to configure micrometer tracing for grpc.
- GrpcClientMicrometerTraceAutoConfiguration() - Constructor for class net.devh.boot.grpc.client.autoconfigure.GrpcClientMicrometerTraceAutoConfiguration
- GrpcClientSecurityAutoConfiguration - Class in net.devh.boot.grpc.client.autoconfigure
-
The security auto configuration for the client.
- GrpcClientSecurityAutoConfiguration() - Constructor for class net.devh.boot.grpc.client.autoconfigure.GrpcClientSecurityAutoConfiguration
- GrpcDiscoveryClientAutoConfiguration - Class in net.devh.boot.grpc.client.autoconfigure
- GrpcDiscoveryClientAutoConfiguration() - Constructor for class net.devh.boot.grpc.client.autoconfigure.GrpcDiscoveryClientAutoConfiguration
- GrpcGlobalClientInterceptor - Annotation Interface in net.devh.boot.grpc.client.interceptor
-
Annotation for gRPC
ClientInterceptor
s to apply them globally.
H
- hashCode() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
- hashCode() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
- hashCode() - Method in class net.devh.boot.grpc.client.config.GrpcChannelsProperties
- heartbeat(HeartbeatEvent) - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientResolverFactory
-
Triggers a refresh of the registered name resolvers.
I
- includeWhenPrivate(CallCredentials) - Static method in class net.devh.boot.grpc.client.security.CallCredentialsHelper
-
Wraps the given call credentials in a new layer, that will only include the credentials if the connection guarantees privacy.
- init() - Method in class net.devh.boot.grpc.client.inject.GrpcClientBeanPostProcessor
- initClientInterceptors() - Method in class net.devh.boot.grpc.client.interceptor.GlobalClientInterceptorRegistry
-
Initializes the list of client interceptors.
- InProcessChannelFactory - Class in net.devh.boot.grpc.client.channelfactory
-
This channel factory creates and manages in-process
GrpcChannelFactory
s. - InProcessChannelFactory(GrpcChannelsProperties, GlobalClientInterceptorRegistry) - Constructor for class net.devh.boot.grpc.client.channelfactory.InProcessChannelFactory
-
Creates a new InProcessChannelFactory with the given properties.
- InProcessChannelFactory(GrpcChannelsProperties, GlobalClientInterceptorRegistry, List<GrpcChannelConfigurer>) - Constructor for class net.devh.boot.grpc.client.channelfactory.InProcessChannelFactory
-
Creates a new InProcessChannelFactory with the given properties.
- InProcessOrAlternativeChannelFactory - Class in net.devh.boot.grpc.client.channelfactory
-
This channel factory is a switch between the
InProcessChannelFactory
and an alternative implementation. - InProcessOrAlternativeChannelFactory(GrpcChannelsProperties, InProcessChannelFactory, GrpcChannelFactory) - Constructor for class net.devh.boot.grpc.client.channelfactory.InProcessOrAlternativeChannelFactory
-
Creates a new InProcessOrAlternativeChannelFactory with the given properties and channel factories.
- interceptCall(MethodDescriptor<ReqT, RespT>, CallOptions, Channel) - Method in class net.devh.boot.grpc.client.interceptor.OrderedClientInterceptor
-
Deprecated.
- interceptCall(MethodDescriptor<ReqT, RespT>, CallOptions, Channel) - Method in class net.devh.boot.grpc.client.metrics.MetricsClientInterceptor
- interceptorNames() - Element in annotation interface net.devh.boot.grpc.client.inject.GrpcClient
-
A list of
ClientInterceptor
beans that should be used with this client in addition to the globally defined ones. - interceptors() - Element in annotation interface net.devh.boot.grpc.client.inject.GrpcClient
-
A list of
ClientInterceptor
classes that should be used with this client in addition to the globally defined ones. - interceptorsFromAnnotation(GrpcClient) - Method in class net.devh.boot.grpc.client.inject.GrpcClientBeanPostProcessor
-
Gets or creates the
ClientInterceptor
s that are referenced in the given annotation. - isActive() - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver
-
Checks whether this resolver is active.
- isApplicable(Class<? extends AbstractStub<?>>) - Method in class net.devh.boot.grpc.client.stubfactory.AsyncStubFactory
- isApplicable(Class<? extends AbstractStub<?>>) - Method in class net.devh.boot.grpc.client.stubfactory.BlockingStubFactory
- isApplicable(Class<? extends AbstractStub<?>>) - Method in class net.devh.boot.grpc.client.stubfactory.FallbackStubFactory
- isApplicable(Class<? extends AbstractStub<?>>) - Method in class net.devh.boot.grpc.client.stubfactory.FutureStubFactory
- isApplicable(Class<? extends AbstractStub<?>>) - Method in interface net.devh.boot.grpc.client.stubfactory.StubFactory
-
Used to resolve a factory that matches the particular stub type.
- isAvailable() - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientResolverFactory
- isAvailable() - Method in class net.devh.boot.grpc.client.nameresolver.StaticNameResolverProvider
- isClientAuthEnabled() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Gets whether client can authenticate using certificates.
- isEnableKeepAlive() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Gets whether keepAlive is enabled.
- isFullStreamDecompression() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Gets whether full-stream decompression of inbound streams should be enabled.
- isKeepAliveWithoutCalls() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Gets whether keepAlive will be performed when there are no outstanding RPC on a connection.
- isNonNullAndNonBlank(String) - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
-
Checks whether the given value is non null and non blank.
- isPrivacyGuaranteed(SecurityLevel) - Static method in class net.devh.boot.grpc.client.security.CallCredentialsHelper
-
Checks whether the given security level provides privacy for all data being send on the connection.
M
- mappedCredentialsStubTransformer(Map<String, CallCredentials>) - Static method in class net.devh.boot.grpc.client.security.CallCredentialsHelper
-
Creates a new
StubTransformer
that will assign credentials to the givenAbstractStub
based on the name. - mappedCredentialsStubTransformer(Map<String, CallCredentials>, CallCredentials) - Static method in class net.devh.boot.grpc.client.security.CallCredentialsHelper
-
Creates a new
StubTransformer
that will assign credentials to the givenAbstractStub
based on the name. - metricCollectingClientInterceptor(MeterRegistry) - Method in class net.devh.boot.grpc.client.autoconfigure.GrpcClientMetricAutoConfiguration
-
Creates a
ClientInterceptor
that collects metrics about incoming and outgoing requests and responses. - MetricsClientInstruments - Class in net.devh.boot.grpc.client.metrics
- metricsClientInterceptor(MeterRegistry) - Method in class net.devh.boot.grpc.client.autoconfigure.GrpcClientMetricAutoConfiguration
-
Creates a
ClientInterceptor
that collects metrics about client attempts and client calls. - MetricsClientInterceptor - Class in net.devh.boot.grpc.client.metrics
-
A gRPC client interceptor that collects gRPC metrics.
- MetricsClientInterceptor(MeterRegistry, Supplier<Stopwatch>) - Constructor for class net.devh.boot.grpc.client.metrics.MetricsClientInterceptor
-
Creates a new gRPC client interceptor that collects metrics into the given
MeterRegistry
. - MetricsClientInterceptor(MetricsClientMeters, Supplier<Stopwatch>) - Constructor for class net.devh.boot.grpc.client.metrics.MetricsClientInterceptor
- MetricsClientMeters - Class in net.devh.boot.grpc.client.metrics
N
- NameResolverRegistration - Class in net.devh.boot.grpc.client.nameresolver
-
The NameResolverRegistration manages the registration and de-registration of Spring managed name resolvers.
- NameResolverRegistration(List<NameResolverProvider>) - Constructor for class net.devh.boot.grpc.client.nameresolver.NameResolverRegistration
-
Creates a new NameResolverRegistration with the given list of providers.
- needsToUpdateConnections(List<ServiceInstance>) - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver
-
Checks whether this instance should update its connections.
- NegotiationType - Enum Class in net.devh.boot.grpc.client.config
-
Identifies the negotiation used for starting up HTTP/2.
- net.devh.boot.grpc.client.autoconfigure - package net.devh.boot.grpc.client.autoconfigure
-
The Spring-Boot auto configuration classes that setup the gRPC client environment.
- net.devh.boot.grpc.client.channelfactory - package net.devh.boot.grpc.client.channelfactory
-
Contains factories and related classes to setup the client's connection channels to the servers.
- net.devh.boot.grpc.client.config - package net.devh.boot.grpc.client.config
-
Classes related to the gRPC client configuration.
- net.devh.boot.grpc.client.inject - package net.devh.boot.grpc.client.inject
-
Classes used to inject the client references into beans.
- net.devh.boot.grpc.client.interceptor - package net.devh.boot.grpc.client.interceptor
-
Classes related to the gRPC (global) client interceptors and their discovery.
- net.devh.boot.grpc.client.metrics - package net.devh.boot.grpc.client.metrics
-
A package containing client side classes for grpc metric collection.
- net.devh.boot.grpc.client.nameresolver - package net.devh.boot.grpc.client.nameresolver
-
Classes used to resolve the client name into the actual service addresses.
- net.devh.boot.grpc.client.security - package net.devh.boot.grpc.client.security
-
Contains classes and utilities that help with the user authentication.
- net.devh.boot.grpc.client.stubfactory - package net.devh.boot.grpc.client.stubfactory
- NettyChannelFactory - Class in net.devh.boot.grpc.client.channelfactory
-
This channel factory creates and manages netty based
GrpcChannelFactory
s. - NettyChannelFactory(GrpcChannelsProperties, GlobalClientInterceptorRegistry, List<GrpcChannelConfigurer>) - Constructor for class net.devh.boot.grpc.client.channelfactory.NettyChannelFactory
-
Creates a new GrpcChannelFactory for netty with the given options.
- newBuilder() - Static method in class net.devh.boot.grpc.client.metrics.MetricsClientMeters
- newChannelBuilder(String) - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
-
Creates a new
ManagedChannelBuilder
for the given client name. - newChannelBuilder(String) - Method in class net.devh.boot.grpc.client.channelfactory.InProcessChannelFactory
- newChannelBuilder(String) - Method in class net.devh.boot.grpc.client.channelfactory.NettyChannelFactory
- newChannelBuilder(String) - Method in class net.devh.boot.grpc.client.channelfactory.ShadedNettyChannelFactory
- newManagedChannel(String) - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
-
Creates a new
ManagedChannel
for the given client name. - newNameResolver(String, NameResolver.Args) - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientResolverFactory
-
Factory method to create the resolver for the given service name.
- newNameResolver(URI, NameResolver.Args) - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientResolverFactory
- newNameResolver(URI, NameResolver.Args) - Method in class net.devh.boot.grpc.client.nameresolver.StaticNameResolverProvider
O
- of(NegotiationType) - Static method in class net.devh.boot.grpc.client.channelfactory.NettyChannelFactory
-
Converts the given negotiation type to netty's negotiation type.
- of(NegotiationType) - Static method in class net.devh.boot.grpc.client.channelfactory.ShadedNettyChannelFactory
-
Converts the given negotiation type to netty's negotiation type.
- OrderedClientInterceptor - Class in net.devh.boot.grpc.client.interceptor
-
Deprecated.
- OrderedClientInterceptor(ClientInterceptor, int) - Constructor for class net.devh.boot.grpc.client.interceptor.OrderedClientInterceptor
-
Deprecated.Creates a new OrderedClientInterceptor with the given client interceptor and order.
P
- PLAINTEXT - Enum constant in enum class net.devh.boot.grpc.client.config.NegotiationType
-
Just assume the connection is plaintext (non-SSL) and the remote endpoint supports HTTP/2 directly without an upgrade.
- PLAINTEXT_UPGRADE - Enum constant in enum class net.devh.boot.grpc.client.config.NegotiationType
-
Use the HTTP UPGRADE protocol for a plaintext (non-SSL) upgrade from HTTP/1.1 to HTTP/2.
- postProcessBeanFactory(ConfigurableListableBeanFactory) - Method in class net.devh.boot.grpc.client.inject.GrpcClientConstructorInjectionBeanFactoryPostProcessor
- postProcessBeforeInitialization(Object, String) - Method in class net.devh.boot.grpc.client.inject.GrpcClientBeanPostProcessor
- priority() - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientResolverFactory
- priority() - Method in class net.devh.boot.grpc.client.nameresolver.StaticNameResolverProvider
- processInjectionPoint(Member, Class<T>, GrpcClient) - Method in class net.devh.boot.grpc.client.inject.GrpcClientBeanPostProcessor
-
Processes the given injection point and computes the appropriate value for the injection.
R
- refresh() - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver
- refresh() - Method in class net.devh.boot.grpc.client.nameresolver.StaticNameResolver
- refreshFromExternal() - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver
-
Triggers a refresh on the listener from non-grpc threads.
- register(NameResolverRegistry) - Method in class net.devh.boot.grpc.client.nameresolver.NameResolverRegistration
-
Register all NameResolverProviders in the given registry and store a reference to it for later de-registration.
- requirePrivacy(CallCredentials) - Static method in class net.devh.boot.grpc.client.security.CallCredentialsHelper
-
Wraps the given call credentials in a new layer, which ensures that the credentials are only send, if the connection guarantees privacy.
S
- Security() - Constructor for class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
- setAddress(String) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Sets the target address uri for the channel.
- setAddress(URI) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Set the address uri for the channel.
- setAuthorityOverride(String) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Sets the authority to check for during server certificate verification.
- setCertificateChain(Resource) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Sets the resource containing the SSL certificate chain.
- setCiphers(String) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Sets the cipher suite accepted for secure connections (in the order of preference).
- setClientAuthEnabled(Boolean) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Set whether client can authenticate using certificates.
- setDefaultLoadBalancingPolicy(String) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Sets the default load balancing policy for this channel.
- setDefaultScheme(String) - Method in class net.devh.boot.grpc.client.config.GrpcChannelsProperties
-
Sets the default scheme to use, if the client doesn't specify a scheme/address.
- setEnableKeepAlive(Boolean) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Sets whether keepAlive should be enabled.
- setFullStreamDecompression(Boolean) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Sets whether full-stream decompression of inbound streams should be enabled.
- setImmediateConnectTimeout(Duration) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
If set to a positive duration instructs the client to connect to the gRPC endpoint when the GRPC stub is created.
- setKeepAliveTime(Duration) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
The default delay before we send a keepAlives.
- setKeepAliveTimeout(Duration) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
The default timeout for a keepAlives ping request.
- setKeepAliveWithoutCalls(Boolean) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Sets whether keepAlive will be performed when there are no outstanding RPC on a connection.
- setKeyStore(Resource) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
The resource containing the key store.
- setKeyStoreFormat(String) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
The format of the
GrpcChannelProperties.Security.keyStore
. - setKeyStorePassword(String) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Password for the key store.
- setMaxInboundMessageSize(DataSize) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Sets the maximum message size in bytes allowed to be received by the channel.
- setNegotiationType(NegotiationType) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Sets the negotiation type to use on the connection.
- setPrivateKey(Resource) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Sets the resource containing the private key.
- setPrivateKeyPassword(String) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Sets the password for the private key.
- setProtocols(String) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Sets the TLS protocols accepted for secure connections.
- setShutdownGracePeriod(Duration) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Sets the time to wait for the channel to gracefully shutdown (completing all requests).
- setTrustCertCollection(Resource) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Sets the resource containing the trusted certificate collection.
- setTrustStore(Resource) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
The resource containing the trust store.
- setTrustStoreFormat(String) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
The format of the
GrpcChannelProperties.Security.trustStore
. - setTrustStorePassword(String) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
-
Password for the trust store.
- setUserAgent(String) - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
-
Sets custom User-Agent HTTP header.
- ShadedNettyChannelFactory - Class in net.devh.boot.grpc.client.channelfactory
-
This channel factory creates and manages shaded netty based
GrpcChannelFactory
s. - ShadedNettyChannelFactory(GrpcChannelsProperties, GlobalClientInterceptorRegistry, List<GrpcChannelConfigurer>) - Constructor for class net.devh.boot.grpc.client.channelfactory.ShadedNettyChannelFactory
-
Creates a new GrpcChannelFactory for shaded netty with the given options.
- shutdown() - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver
- shutdown() - Method in class net.devh.boot.grpc.client.nameresolver.StaticNameResolver
- sortInterceptors() - Element in annotation interface net.devh.boot.grpc.client.inject.GrpcClient
-
Whether the custom interceptors should be mixed with the global interceptors and sorted afterwards.
- sortInterceptors(List<? extends ClientInterceptor>) - Method in class net.devh.boot.grpc.client.interceptor.GlobalClientInterceptorRegistry
-
Sorts the given list of interceptors.
- StandardJavaGrpcStubFactory - Class in net.devh.boot.grpc.client.stubfactory
-
A factory for creating stubs provided by standard grpc Java library.
- StandardJavaGrpcStubFactory() - Constructor for class net.devh.boot.grpc.client.stubfactory.StandardJavaGrpcStubFactory
- start(NameResolver.Listener2) - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver
- start(NameResolver.Listener2) - Method in class net.devh.boot.grpc.client.nameresolver.StaticNameResolver
- STATIC_SCHEME - Static variable in class net.devh.boot.grpc.client.nameresolver.StaticNameResolverProvider
-
The constant containing the scheme that will be used by this factory.
- StaticNameResolver - Class in net.devh.boot.grpc.client.nameresolver
-
A
NameResolver
that will always respond with a static set of target addresses. - StaticNameResolver(String, EquivalentAddressGroup) - Constructor for class net.devh.boot.grpc.client.nameresolver.StaticNameResolver
-
Creates a static name resolver with only a single target server.
- StaticNameResolver(String, NameResolver.ResolutionResult) - Constructor for class net.devh.boot.grpc.client.nameresolver.StaticNameResolver
-
Creates a static name resolver with multiple target servers.
- StaticNameResolver(String, Collection<EquivalentAddressGroup>) - Constructor for class net.devh.boot.grpc.client.nameresolver.StaticNameResolver
-
Creates a static name resolver with multiple target servers.
- StaticNameResolverProvider - Class in net.devh.boot.grpc.client.nameresolver
-
A name resolver provider that will create a
NameResolver
with static addresses. - StaticNameResolverProvider() - Constructor for class net.devh.boot.grpc.client.nameresolver.StaticNameResolverProvider
- StubFactory - Interface in net.devh.boot.grpc.client.stubfactory
-
A factory for gRPC stubs.
- StubTransformer - Interface in net.devh.boot.grpc.client.inject
-
A stub transformer will be used by the
GrpcClientBeanPostProcessor
to configure the stubs before they are assigned to their fields.
T
- TLS - Enum constant in enum class net.devh.boot.grpc.client.config.NegotiationType
-
Uses TLS ALPN/NPN negotiation, assumes an SSL connection.
- toString() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties.Security
- toString() - Method in class net.devh.boot.grpc.client.config.GrpcChannelProperties
- toString() - Method in class net.devh.boot.grpc.client.config.GrpcChannelsProperties
- toString() - Method in class net.devh.boot.grpc.client.interceptor.OrderedClientInterceptor
-
Deprecated.
- toString() - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientNameResolver
- toString() - Method in class net.devh.boot.grpc.client.nameresolver.DiscoveryClientResolverFactory
- toString() - Method in class net.devh.boot.grpc.client.nameresolver.StaticNameResolver
- toString() - Method in class net.devh.boot.grpc.client.nameresolver.StaticNameResolverProvider
- transform(String, AbstractStub<?>) - Method in interface net.devh.boot.grpc.client.inject.StubTransformer
-
Transform the given stub using
AbstractStub#with...
methods.
V
- value() - Element in annotation interface net.devh.boot.grpc.client.inject.GrpcClient
-
The name of the grpc client.
- value() - Element in annotation interface net.devh.boot.grpc.client.inject.GrpcClientBeans
-
Helper field containing multiple
GrpcClientBean
definitions. - valueForMember(String, Member, Class<T>, Channel) - Method in class net.devh.boot.grpc.client.inject.GrpcClientBeanPostProcessor
-
Creates the instance to be injected for the given member.
- valueOf(String) - Static method in enum class net.devh.boot.grpc.client.config.NegotiationType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class net.devh.boot.grpc.client.config.NegotiationType
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- watchConnectivityState(String, ManagedChannel) - Method in class net.devh.boot.grpc.client.channelfactory.AbstractChannelFactory
-
Watch the given channel for connectivity changes.
All Classes and Interfaces|All Packages|Constant Field Values
ClientInterceptor
in combination withOrder
(either on the target class itself or the related factory method).