Package ca.cdr.api.camel
Interface ICamelRouteEndpointSvc
public interface ICamelRouteEndpointSvc
Service to send messages to camel module routes.
Can be autowired from hybrid providers.
-
Method Summary
-
Method Details
-
sendToCamelRoute
@Deprecated(since="2024.08") CompletableFuture<Object> sendToCamelRoute(String theModuleId, String theDirectRouteName, Object theInput, Map<String, Object> theHeaders) Deprecated.Send asynchronous request to camel module/route specified. This method has been marked as deprecated. Please usesend(String, String, Object, Map)
instead.- Parameters:
theModuleId
- the camel target module IDtheDirectRouteName
- the camel target module route IDtheInput
- the input objecttheHeaders
- the request headers- Returns:
- CompletableFuture the asynchronous send response body
-
send
org.apache.camel.Exchange send(String theModuleId, String theEndpointUri, Object theInput, Map<String, Object> theHeaders) Send a Camel message to a direct endpoint available in the specified module using the provided body and headers. Please note that the direct directive will be added if not present in the endpoint uri.- Parameters:
theModuleId
- the target module idtheEndpointUri
- the endpoint uritheInput
- the body objecttheHeaders
- the headers to include in the message- Returns:
- the returned Exchange object
-