@UriParams public class GrpcConfiguration extends Object
| Constructor and Description |
|---|
GrpcConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
GrpcAuthType |
getAuthenticationType()
Authentication method type in advance to the SSL/TLS negotiation
|
List<io.grpc.ClientInterceptor> |
getClientInterceptors() |
GrpcConsumerStrategy |
getConsumerStrategy()
This option specifies the top-level strategy for processing service requests and responses in streaming mode.
|
int |
getFlowControlWindow()
The HTTP/2 flow control window size (MiB)
|
String |
getHost()
The gRPC server host name.
|
JwtAlgorithm |
getJwtAlgorithm()
JSON Web Token sign algorithm
|
String |
getJwtIssuer()
JSON Web Token issuer
|
String |
getJwtSecret()
JSON Web Token secret
|
String |
getJwtSubject()
JSON Web Token subject
|
String |
getKeyCertChainResource() |
String |
getKeyPassword()
The PKCS#8 private key file password
|
String |
getKeyResource() |
int |
getMaxConcurrentCallsPerConnection() |
int |
getMaxMessageSize() |
String |
getMethod()
gRPC method name
|
io.grpc.netty.NegotiationType |
getNegotiationType() |
int |
getPort()
The gRPC local or remote server port
|
GrpcProducerStrategy |
getProducerStrategy() |
String |
getService()
Fully qualified service name from the protocol buffer descriptor file (package dot service definition name)
|
String |
getServiceAccountResource()
Service Account key file in JSON format resource link supported by the Google Cloud SDK
|
String |
getStreamRepliesTo() |
String |
getTrustCertCollectionResource() |
String |
getUserAgent()
The user agent header passed to the server
|
boolean |
isAutoDiscoverClientInterceptors() |
boolean |
isForwardOnCompleted() |
boolean |
isForwardOnError() |
boolean |
isRouteControlledStreamObserver()
Lets the route to take control over stream observer.
|
void |
parseURI(URI uri) |
void |
setAuthenticationType(GrpcAuthType authenticationType) |
void |
setAutoDiscoverClientInterceptors(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.
|
void |
setClientInterceptors(List<io.grpc.ClientInterceptor> clientInterceptors)
Setting the client interceptors on the netty channel in order to intercept outgoing calls before they are
dispatched by the channel.
|
void |
setConsumerStrategy(GrpcConsumerStrategy consumerStrategy) |
void |
setFlowControlWindow(int flowControlWindow) |
void |
setForwardOnCompleted(boolean forwardOnCompleted)
Determines if onCompleted events should be pushed to the Camel route.
|
void |
setForwardOnError(boolean forwardOnError)
Determines if onError events should be pushed to the Camel route.
|
void |
setHost(String host) |
void |
setJwtAlgorithm(JwtAlgorithm jwtAlgorithm) |
void |
setJwtIssuer(String jwtIssuer) |
void |
setJwtSecret(String jwtSecret) |
void |
setJwtSubject(String jwtSubject) |
void |
setKeyCertChainResource(String keyCertChainResource)
The X.509 certificate chain file resource in PEM format link
|
void |
setKeyPassword(String keyPassword) |
void |
setKeyResource(String keyResource)
The PKCS#8 private key file resource in PEM format link
|
void |
setMaxConcurrentCallsPerConnection(int maxConcurrentCallsPerConnection)
The maximum number of concurrent calls permitted for each incoming server connection
|
void |
setMaxMessageSize(int maxMessageSize)
The maximum message size allowed to be received/sent (MiB)
|
void |
setMethod(String method) |
void |
setNegotiationType(io.grpc.netty.NegotiationType negotiationType)
Identifies the security negotiation type used for HTTP/2 communication
|
void |
setPort(int port) |
void |
setProducerStrategy(GrpcProducerStrategy producerStrategy)
The mode used to communicate with a remote gRPC server.
|
void |
setRouteControlledStreamObserver(boolean routeControlledStreamObserver) |
void |
setService(String service) |
void |
setServiceAccountResource(String serviceAccountResource) |
void |
setStreamRepliesTo(String streamRepliesTo)
When using STREAMING client mode, it indicates the endpoint where responses should be forwarded.
|
void |
setTrustCertCollectionResource(String trustCertCollectionResource)
The trusted certificates collection file resource in PEM format for verifying the remote endpoint's certificate
|
void |
setUserAgent(String userAgent) |
public String getService()
public void setService(String service)
public String getMethod()
public void setMethod(String method)
public String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
public io.grpc.netty.NegotiationType getNegotiationType()
public void setNegotiationType(io.grpc.netty.NegotiationType negotiationType)
public GrpcAuthType getAuthenticationType()
public void setAuthenticationType(GrpcAuthType authenticationType)
public JwtAlgorithm getJwtAlgorithm()
public void setJwtAlgorithm(JwtAlgorithm jwtAlgorithm)
public String getJwtSecret()
public void setJwtSecret(String jwtSecret)
public String getJwtIssuer()
public void setJwtIssuer(String jwtIssuer)
public String getJwtSubject()
public void setJwtSubject(String jwtSubject)
public String getServiceAccountResource()
public void setServiceAccountResource(String serviceAccountResource)
public String getKeyCertChainResource()
public void setKeyCertChainResource(String keyCertChainResource)
public String getKeyResource()
public void setKeyResource(String keyResource)
public String getKeyPassword()
public void setKeyPassword(String keyPassword)
public String getTrustCertCollectionResource()
public void setTrustCertCollectionResource(String trustCertCollectionResource)
public GrpcConsumerStrategy getConsumerStrategy()
public void setConsumerStrategy(GrpcConsumerStrategy consumerStrategy)
public boolean isForwardOnCompleted()
public void setForwardOnCompleted(boolean forwardOnCompleted)
public boolean isForwardOnError()
public void setForwardOnError(boolean forwardOnError)
public GrpcProducerStrategy getProducerStrategy()
public void setProducerStrategy(GrpcProducerStrategy producerStrategy)
public String getStreamRepliesTo()
public void setStreamRepliesTo(String streamRepliesTo)
public String getUserAgent()
public void setUserAgent(String userAgent)
public int getFlowControlWindow()
public void setFlowControlWindow(int flowControlWindow)
public int getMaxMessageSize()
public void setMaxMessageSize(int maxMessageSize)
public boolean isRouteControlledStreamObserver()
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.
public void setRouteControlledStreamObserver(boolean routeControlledStreamObserver)
public int getMaxConcurrentCallsPerConnection()
public void setMaxConcurrentCallsPerConnection(int maxConcurrentCallsPerConnection)
public List<io.grpc.ClientInterceptor> getClientInterceptors()
public void setClientInterceptors(List<io.grpc.ClientInterceptor> clientInterceptors)
public boolean isAutoDiscoverClientInterceptors()
public void setAutoDiscoverClientInterceptors(boolean autoDiscoverClientInterceptors)
public void parseURI(URI uri)
Apache Camel