Interface GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
GrpcEndpointBuilderFactory.GrpcEndpointBuilder
- Enclosing interface:
- GrpcEndpointBuilderFactory
public static interface GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint producers for the gRPC component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default GrpcEndpointBuilderFactory.AdvancedGrpcEndpointProducerBuilder
advanced()
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
authenticationType(String authenticationType)
Authentication method type in advance to the SSL/TLS negotiation.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
authenticationType(org.apache.camel.component.grpc.GrpcAuthType authenticationType)
Authentication method type in advance to the SSL/TLS negotiation.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
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.GrpcEndpointProducerBuilder
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.GrpcEndpointProducerBuilder
flowControlWindow(int flowControlWindow)
The HTTP/2 flow control window size (MiB).default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
flowControlWindow(String flowControlWindow)
The HTTP/2 flow control window size (MiB).default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
jwtAlgorithm(String jwtAlgorithm)
JSON Web Token sign algorithm.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
jwtAlgorithm(org.apache.camel.component.grpc.auth.jwt.JwtAlgorithm jwtAlgorithm)
JSON Web Token sign algorithm.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
jwtIssuer(String jwtIssuer)
JSON Web Token issuer.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
jwtSecret(String jwtSecret)
JSON Web Token secret.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
jwtSubject(String jwtSubject)
JSON Web Token subject.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
keyCertChainResource(String keyCertChainResource)
The X.509 certificate chain file resource in PEM format link.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
keyPassword(String keyPassword)
The PKCS#8 private key file password.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
keyResource(String keyResource)
The PKCS#8 private key file resource in PEM format link.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
maxMessageSize(int maxMessageSize)
The maximum message size allowed to be received/sent (MiB).default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
maxMessageSize(String maxMessageSize)
The maximum message size allowed to be received/sent (MiB).default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
method(String method)
gRPC method name.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
negotiationType(io.grpc.netty.NegotiationType negotiationType)
Identifies the security negotiation type used for HTTP/2 communication.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
negotiationType(String negotiationType)
Identifies the security negotiation type used for HTTP/2 communication.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
producerStrategy(String producerStrategy)
The mode used to communicate with a remote gRPC server.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
producerStrategy(org.apache.camel.component.grpc.GrpcProducerStrategy producerStrategy)
The mode used to communicate with a remote gRPC server.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
serviceAccountResource(String serviceAccountResource)
Service Account key file in JSON format resource link supported by the Google Cloud SDK.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
streamRepliesTo(String streamRepliesTo)
When using STREAMING client mode, it indicates the endpoint where responses should be forwarded.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
trustCertCollectionResource(String trustCertCollectionResource)
The trusted certificates collection file resource in PEM format for verifying the remote endpoint's certificate.default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder
userAgent(String userAgent)
The user agent header passed to the server.
-
-
-
Method Detail
-
advanced
default GrpcEndpointBuilderFactory.AdvancedGrpcEndpointProducerBuilder advanced()
-
flowControlWindow
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder flowControlWindow(int flowControlWindow)
The HTTP/2 flow control window size (MiB). The option is a: <code>int</code> type. Default: 1048576 Group: common- Parameters:
flowControlWindow
- the value to set- Returns:
- the dsl builder
-
flowControlWindow
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder flowControlWindow(String flowControlWindow)
The HTTP/2 flow control window size (MiB). The option will be converted to a <code>int</code> type. Default: 1048576 Group: common- Parameters:
flowControlWindow
- the value to set- Returns:
- the dsl builder
-
maxMessageSize
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder maxMessageSize(int maxMessageSize)
The maximum message size allowed to be received/sent (MiB). The option is a: <code>int</code> type. Default: 4194304 Group: common- Parameters:
maxMessageSize
- the value to set- Returns:
- the dsl builder
-
maxMessageSize
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder maxMessageSize(String maxMessageSize)
The maximum message size allowed to be received/sent (MiB). The option will be converted to a <code>int</code> type. Default: 4194304 Group: common- Parameters:
maxMessageSize
- the value to set- Returns:
- the dsl builder
-
autoDiscoverClientInterceptors
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder 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: <code>boolean</code> type. Default: true Group: producer- Parameters:
autoDiscoverClientInterceptors
- the value to set- Returns:
- the dsl builder
-
autoDiscoverClientInterceptors
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder 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 a <code>boolean</code> type. Default: true Group: producer- Parameters:
autoDiscoverClientInterceptors
- the value to set- Returns:
- the dsl builder
-
method
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder method(String method)
gRPC method name. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
method
- the value to set- Returns:
- the dsl builder
-
producerStrategy
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder producerStrategy(org.apache.camel.component.grpc.GrpcProducerStrategy producerStrategy)
The mode used to communicate with a remote gRPC server. In SIMPLE mode a single exchange is translated into a remote procedure call. In STREAMING mode all exchanges will be sent within the same request (input and output of the recipient gRPC service must be of type 'stream'). The option is a: <code>org.apache.camel.component.grpc.GrpcProducerStrategy</code> type. Default: SIMPLE Group: producer- Parameters:
producerStrategy
- the value to set- Returns:
- the dsl builder
-
producerStrategy
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder producerStrategy(String producerStrategy)
The mode used to communicate with a remote gRPC server. In SIMPLE mode a single exchange is translated into a remote procedure call. In STREAMING mode all exchanges will be sent within the same request (input and output of the recipient gRPC service must be of type 'stream'). The option will be converted to a <code>org.apache.camel.component.grpc.GrpcProducerStrategy</code> type. Default: SIMPLE Group: producer- Parameters:
producerStrategy
- the value to set- Returns:
- the dsl builder
-
streamRepliesTo
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder streamRepliesTo(String streamRepliesTo)
When using STREAMING client mode, it indicates the endpoint where responses should be forwarded. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
streamRepliesTo
- the value to set- Returns:
- the dsl builder
-
userAgent
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder userAgent(String userAgent)
The user agent header passed to the server. The option is a: <code>java.lang.String</code> type. Group: producer- Parameters:
userAgent
- the value to set- Returns:
- the dsl builder
-
authenticationType
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder authenticationType(org.apache.camel.component.grpc.GrpcAuthType authenticationType)
Authentication method type in advance to the SSL/TLS negotiation. The option is a: <code>org.apache.camel.component.grpc.GrpcAuthType</code> type. Default: NONE Group: security- Parameters:
authenticationType
- the value to set- Returns:
- the dsl builder
-
authenticationType
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder authenticationType(String authenticationType)
Authentication method type in advance to the SSL/TLS negotiation. The option will be converted to a <code>org.apache.camel.component.grpc.GrpcAuthType</code> type. Default: NONE Group: security- Parameters:
authenticationType
- the value to set- Returns:
- the dsl builder
-
jwtAlgorithm
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder jwtAlgorithm(org.apache.camel.component.grpc.auth.jwt.JwtAlgorithm jwtAlgorithm)
JSON Web Token sign algorithm. The option is a: <code>org.apache.camel.component.grpc.auth.jwt.JwtAlgorithm</code> type. Default: HMAC256 Group: security- Parameters:
jwtAlgorithm
- the value to set- Returns:
- the dsl builder
-
jwtAlgorithm
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder jwtAlgorithm(String jwtAlgorithm)
JSON Web Token sign algorithm. The option will be converted to a <code>org.apache.camel.component.grpc.auth.jwt.JwtAlgorithm</code> type. Default: HMAC256 Group: security- Parameters:
jwtAlgorithm
- the value to set- Returns:
- the dsl builder
-
jwtIssuer
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder jwtIssuer(String jwtIssuer)
JSON Web Token issuer. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
jwtIssuer
- the value to set- Returns:
- the dsl builder
-
jwtSecret
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder jwtSecret(String jwtSecret)
JSON Web Token secret. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
jwtSecret
- the value to set- Returns:
- the dsl builder
-
jwtSubject
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder jwtSubject(String jwtSubject)
JSON Web Token subject. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
jwtSubject
- the value to set- Returns:
- the dsl builder
-
keyCertChainResource
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder keyCertChainResource(String keyCertChainResource)
The X.509 certificate chain file resource in PEM format link. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
keyCertChainResource
- the value to set- Returns:
- the dsl builder
-
keyPassword
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder keyPassword(String keyPassword)
The PKCS#8 private key file password. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
keyPassword
- the value to set- Returns:
- the dsl builder
-
keyResource
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder keyResource(String keyResource)
The PKCS#8 private key file resource in PEM format link. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
keyResource
- the value to set- Returns:
- the dsl builder
-
negotiationType
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder negotiationType(io.grpc.netty.NegotiationType negotiationType)
Identifies the security negotiation type used for HTTP/2 communication. The option is a: <code>io.grpc.netty.NegotiationType</code> type. Default: PLAINTEXT Group: security- Parameters:
negotiationType
- the value to set- Returns:
- the dsl builder
-
negotiationType
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder negotiationType(String negotiationType)
Identifies the security negotiation type used for HTTP/2 communication. The option will be converted to a <code>io.grpc.netty.NegotiationType</code> type. Default: PLAINTEXT Group: security- Parameters:
negotiationType
- the value to set- Returns:
- the dsl builder
-
serviceAccountResource
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder serviceAccountResource(String serviceAccountResource)
Service Account key file in JSON format resource link supported by the Google Cloud SDK. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
serviceAccountResource
- the value to set- Returns:
- the dsl builder
-
trustCertCollectionResource
default GrpcEndpointBuilderFactory.GrpcEndpointProducerBuilder trustCertCollectionResource(String trustCertCollectionResource)
The trusted certificates collection file resource in PEM format for verifying the remote endpoint's certificate. The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
trustCertCollectionResource
- the value to set- Returns:
- the dsl builder
-
-