Package org.apache.camel.builder
Interface LambdaRouteBuilder
- All Superinterfaces:
org.apache.camel.util.function.ThrowingConsumer<RouteBuilder,
Exception>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface LambdaRouteBuilder
extends org.apache.camel.util.function.ThrowingConsumer<RouteBuilder,Exception>
Functional interface for adding routes to a context using a lambda expression. It can be used as following:
RouteBuilder.addRoutes(context, rb -> rb.from("direct:inbound").bean(MyBean.class)));
- See Also:
-
Method Summary
Methods inherited from interface org.apache.camel.util.function.ThrowingConsumer
accept