Interface GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
GrpcEndpointBuilderFactory.GrpcEndpointBuilder
- Enclosing interface:
- GrpcEndpointBuilderFactory
public static interface GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder extends org.apache.camel.builder.EndpointConsumerBuilder
Builder for endpoint consumers for the gRPC component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default GrpcEndpointBuilderFactory.AdvancedGrpcEndpointConsumerBuilder
advanced()
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
authenticationType(String authenticationType)
Authentication method type in advance to the SSL/TLS negotiation.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
authenticationType(GrpcEndpointBuilderFactory.GrpcAuthType authenticationType)
Authentication method type in advance to the SSL/TLS negotiation.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
autoDiscoverClientInterceptors(boolean autoDiscoverClientInterceptors)
Setting the autoDiscoverClientInterceptors mechanism, if true, the component will look for a ClientInterceptor instance in the registry automatically otherwise it will skip that checking.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
autoDiscoverClientInterceptors(String autoDiscoverClientInterceptors)
Setting the autoDiscoverClientInterceptors mechanism, if true, the component will look for a ClientInterceptor instance in the registry automatically otherwise it will skip that checking.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
bridgeErrorHandler(boolean bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
bridgeErrorHandler(String bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
consumerStrategy(String consumerStrategy)
This option specifies the top-level strategy for processing service requests and responses in streaming mode.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
consumerStrategy(GrpcEndpointBuilderFactory.GrpcConsumerStrategy consumerStrategy)
This option specifies the top-level strategy for processing service requests and responses in streaming mode.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
flowControlWindow(int flowControlWindow)
The HTTP/2 flow control window size (MiB).default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
flowControlWindow(String flowControlWindow)
The HTTP/2 flow control window size (MiB).default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
forwardOnCompleted(boolean forwardOnCompleted)
Determines if onCompleted events should be pushed to the Camel route.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
forwardOnCompleted(String forwardOnCompleted)
Determines if onCompleted events should be pushed to the Camel route.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
forwardOnError(boolean forwardOnError)
Determines if onError events should be pushed to the Camel route.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
forwardOnError(String forwardOnError)
Determines if onError events should be pushed to the Camel route.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
jwtAlgorithm(String jwtAlgorithm)
JSON Web Token sign algorithm.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
jwtAlgorithm(GrpcEndpointBuilderFactory.JwtAlgorithm jwtAlgorithm)
JSON Web Token sign algorithm.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
jwtIssuer(String jwtIssuer)
JSON Web Token issuer.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
jwtSecret(String jwtSecret)
JSON Web Token secret.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
jwtSubject(String jwtSubject)
JSON Web Token subject.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
keyCertChainResource(String keyCertChainResource)
The X.509 certificate chain file resource in PEM format link.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
keyPassword(String keyPassword)
The PKCS#8 private key file password.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
keyResource(String keyResource)
The PKCS#8 private key file resource in PEM format link.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
maxConcurrentCallsPerConnection(int maxConcurrentCallsPerConnection)
The maximum number of concurrent calls permitted for each incoming server connection.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
maxConcurrentCallsPerConnection(String maxConcurrentCallsPerConnection)
The maximum number of concurrent calls permitted for each incoming server connection.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
maxMessageSize(int maxMessageSize)
The maximum message size allowed to be received/sent (MiB).default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
maxMessageSize(String maxMessageSize)
The maximum message size allowed to be received/sent (MiB).default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
negotiationType(String negotiationType)
Identifies the security negotiation type used for HTTP/2 communication.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
negotiationType(GrpcEndpointBuilderFactory.NegotiationType negotiationType)
Identifies the security negotiation type used for HTTP/2 communication.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
routeControlledStreamObserver(boolean routeControlledStreamObserver)
Lets the route to take control over stream observer.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
routeControlledStreamObserver(String routeControlledStreamObserver)
Lets the route to take control over stream observer.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
serviceAccountResource(String serviceAccountResource)
Service Account key file in JSON format resource link supported by the Google Cloud SDK.default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder
trustCertCollectionResource(String trustCertCollectionResource)
The trusted certificates collection file resource in PEM format for verifying the remote endpoint's certificate.
-
-
-
Method Detail
-
advanced
default GrpcEndpointBuilderFactory.AdvancedGrpcEndpointConsumerBuilder advanced()
-
autoDiscoverClientInterceptors
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder autoDiscoverClientInterceptors(boolean autoDiscoverClientInterceptors)
Setting the autoDiscoverClientInterceptors mechanism, if true, the component will look for a ClientInterceptor instance in the registry automatically otherwise it will skip that checking. The option is a:boolean
type. Default: true Group: common
-
autoDiscoverClientInterceptors
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder autoDiscoverClientInterceptors(String autoDiscoverClientInterceptors)
Setting the autoDiscoverClientInterceptors mechanism, if true, the component will look for a ClientInterceptor instance in the registry automatically otherwise it will skip that checking. The option will be converted to aboolean
type. Default: true Group: common
-
flowControlWindow
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder flowControlWindow(int flowControlWindow)
The HTTP/2 flow control window size (MiB). The option is a:int
type. Default: 1048576 Group: common
-
flowControlWindow
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder flowControlWindow(String flowControlWindow)
The HTTP/2 flow control window size (MiB). The option will be converted to aint
type. Default: 1048576 Group: common
-
maxMessageSize
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder maxMessageSize(int maxMessageSize)
The maximum message size allowed to be received/sent (MiB). The option is a:int
type. Default: 4194304 Group: common
-
maxMessageSize
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder maxMessageSize(String maxMessageSize)
The maximum message size allowed to be received/sent (MiB). The option will be converted to aint
type. Default: 4194304 Group: common
-
bridgeErrorHandler
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a:boolean
type. Default: false Group: consumer
-
bridgeErrorHandler
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder bridgeErrorHandler(String bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to aboolean
type. Default: false Group: consumer
-
consumerStrategy
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder consumerStrategy(GrpcEndpointBuilderFactory.GrpcConsumerStrategy consumerStrategy)
This option specifies the top-level strategy for processing service requests and responses in streaming mode. If an aggregation strategy is selected, all requests will be accumulated in the list, then transferred to the flow, and the accumulated responses will be sent to the sender. If a propagation strategy is selected, request is sent to the stream, and the response will be immediately sent back to the sender. The option is a:org.apache.camel.component.grpc.GrpcConsumerStrategy
type. Default: PROPAGATION Group: consumer
-
consumerStrategy
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder consumerStrategy(String consumerStrategy)
This option specifies the top-level strategy for processing service requests and responses in streaming mode. If an aggregation strategy is selected, all requests will be accumulated in the list, then transferred to the flow, and the accumulated responses will be sent to the sender. If a propagation strategy is selected, request is sent to the stream, and the response will be immediately sent back to the sender. The option will be converted to aorg.apache.camel.component.grpc.GrpcConsumerStrategy
type. Default: PROPAGATION Group: consumer
-
forwardOnCompleted
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder forwardOnCompleted(boolean forwardOnCompleted)
Determines if onCompleted events should be pushed to the Camel route. The option is a:boolean
type. Default: false Group: consumer
-
forwardOnCompleted
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder forwardOnCompleted(String forwardOnCompleted)
Determines if onCompleted events should be pushed to the Camel route. The option will be converted to aboolean
type. Default: false Group: consumer
-
forwardOnError
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder forwardOnError(boolean forwardOnError)
Determines if onError events should be pushed to the Camel route. Exceptions will be set as message body. The option is a:boolean
type. Default: false Group: consumer
-
forwardOnError
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder forwardOnError(String forwardOnError)
Determines if onError events should be pushed to the Camel route. Exceptions will be set as message body. The option will be converted to aboolean
type. Default: false Group: consumer
-
maxConcurrentCallsPerConnection
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder maxConcurrentCallsPerConnection(int maxConcurrentCallsPerConnection)
The maximum number of concurrent calls permitted for each incoming server connection. The option is a:int
type. Default: 2147483647 Group: consumer
-
maxConcurrentCallsPerConnection
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder maxConcurrentCallsPerConnection(String maxConcurrentCallsPerConnection)
The maximum number of concurrent calls permitted for each incoming server connection. The option will be converted to aint
type. Default: 2147483647 Group: consumer
-
routeControlledStreamObserver
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder routeControlledStreamObserver(boolean routeControlledStreamObserver)
Lets the route to take control over stream observer. If this value is set to true, then the response observer of gRPC call will be set with the name GrpcConstants.GRPC_RESPONSE_OBSERVER in the Exchange object. Please note that the stream observer's onNext(), onError(), onCompleted() methods should be called in the route. The option is a:boolean
type. Default: false Group: consumer
-
routeControlledStreamObserver
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder routeControlledStreamObserver(String routeControlledStreamObserver)
Lets the route to take control over stream observer. If this value is set to true, then the response observer of gRPC call will be set with the name GrpcConstants.GRPC_RESPONSE_OBSERVER in the Exchange object. Please note that the stream observer's onNext(), onError(), onCompleted() methods should be called in the route. The option will be converted to aboolean
type. Default: false Group: consumer
-
authenticationType
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder authenticationType(GrpcEndpointBuilderFactory.GrpcAuthType authenticationType)
Authentication method type in advance to the SSL/TLS negotiation. The option is a:org.apache.camel.component.grpc.GrpcAuthType
type. Default: NONE Group: security
-
authenticationType
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder authenticationType(String authenticationType)
Authentication method type in advance to the SSL/TLS negotiation. The option will be converted to aorg.apache.camel.component.grpc.GrpcAuthType
type. Default: NONE Group: security
-
jwtAlgorithm
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder jwtAlgorithm(GrpcEndpointBuilderFactory.JwtAlgorithm jwtAlgorithm)
JSON Web Token sign algorithm. The option is a:org.apache.camel.component.grpc.auth.jwt.JwtAlgorithm
type. Default: HMAC256 Group: security
-
jwtAlgorithm
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder jwtAlgorithm(String jwtAlgorithm)
JSON Web Token sign algorithm. The option will be converted to aorg.apache.camel.component.grpc.auth.jwt.JwtAlgorithm
type. Default: HMAC256 Group: security
-
jwtIssuer
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder jwtIssuer(String jwtIssuer)
JSON Web Token issuer. The option is a:java.lang.String
type. Group: security
-
jwtSecret
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder jwtSecret(String jwtSecret)
JSON Web Token secret. The option is a:java.lang.String
type. Group: security
-
jwtSubject
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder jwtSubject(String jwtSubject)
JSON Web Token subject. The option is a:java.lang.String
type. Group: security
-
keyCertChainResource
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder keyCertChainResource(String keyCertChainResource)
The X.509 certificate chain file resource in PEM format link. The option is a:java.lang.String
type. Group: security
-
keyPassword
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder keyPassword(String keyPassword)
The PKCS#8 private key file password. The option is a:java.lang.String
type. Group: security
-
keyResource
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder keyResource(String keyResource)
The PKCS#8 private key file resource in PEM format link. The option is a:java.lang.String
type. Group: security
-
negotiationType
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder negotiationType(GrpcEndpointBuilderFactory.NegotiationType negotiationType)
Identifies the security negotiation type used for HTTP/2 communication. The option is a:io.grpc.netty.NegotiationType
type. Default: PLAINTEXT Group: security
-
negotiationType
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder negotiationType(String negotiationType)
Identifies the security negotiation type used for HTTP/2 communication. The option will be converted to aio.grpc.netty.NegotiationType
type. Default: PLAINTEXT Group: security
-
serviceAccountResource
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder serviceAccountResource(String serviceAccountResource)
Service Account key file in JSON format resource link supported by the Google Cloud SDK. The option is a:java.lang.String
type. Group: security
-
trustCertCollectionResource
default GrpcEndpointBuilderFactory.GrpcEndpointConsumerBuilder trustCertCollectionResource(String trustCertCollectionResource)
The trusted certificates collection file resource in PEM format for verifying the remote endpoint's certificate. The option is a:java.lang.String
type. Group: security
-
-