public void configure()

in java-lambda/src/main/java/org/apache/camel/example/java8/MyApplication.java [43:63]


        public void configure() throws Exception {
            from("timer:simple?includeMetadata=true&period=503")
                .id("simple-route")
                .transform()
                    .exchange(this::dateToTime)
                .process()
                    .message(this::log)
                .process()
                    .body(this::log)
                .choice()
                    .when()
                        .body(Integer.class, b -> (b & 1) == 0)
                        .log("Received even number")
                    .when()
                        .body(Integer.class, b -> (b & 1) != 0)
                        .log("Received odd number")
                    .when()
                        .body(Objects::isNull)
                        .log("Received null body")
                .end();
        }