Interface RouteInvoker
- All Known Implementing Classes:
CxfRouteInvoker,DirectRouteInvoker,FileRouteInvoker,FtpRouteInvoker,JmsRouteInvoker,KafkaRouteInvoker,MailRouteInvoker,RestRouteInvoker
public interface RouteInvoker
Route invoker interface
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.apache.camel.Exchange>invoke(org.apache.camel.Exchange exchange) Sends request to routebooleanisApplicable(org.apache.camel.Endpoint endpoint) Match Endpoint with proper RouteInvokerdefault booleanshouldSuspend(org.apache.camel.Endpoint endpoint) Check if component from RouteInvoker is for suspending
-
Field Details
-
TEST_NAME_HEADER
- See Also:
-
-
Method Details
-
invoke
Sends request to route- Parameters:
exchange-Exchange- Returns:
Optionalresult of route execution, empty when invoking no reply components.
-
isApplicable
boolean isApplicable(org.apache.camel.Endpoint endpoint) Match Endpoint with proper RouteInvoker- Parameters:
endpoint-Endpoint- Returns:
- boolean true when matching
-
shouldSuspend
default boolean shouldSuspend(org.apache.camel.Endpoint endpoint) Check if component from RouteInvoker is for suspending- Parameters:
endpoint-Endpoint- Returns:
- boolean true when matching
-