Interface LambdaEndpointRouteBuilder
- All Superinterfaces:
org.apache.camel.util.function.ThrowingConsumer<EndpointRouteBuilder,
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 LambdaEndpointRouteBuilder
extends org.apache.camel.util.function.ThrowingConsumer<EndpointRouteBuilder,Exception>
Functional interface for adding routes to a context using a lambda expression. It can be used as following:
EndpointRouteBuilder.addEndpointRoutes(context, rb -> rb.from(rb.direct("inbound")).bean(MyBean.class)));
-
Method Summary
Methods inherited from interface org.apache.camel.util.function.ThrowingConsumer
accept