Improve Delayer DSL (#8645)
* Improve Delayer DSL Move `groupId` option from a `delay()` method arg to the `DelayerEndpointSpec` to make it cleaner from code reading perspective * Expose new DSL method based on just a `DelayerEndpointSpec` for Kotlin &v Groovy * Deprecate multi-arg `delay()` methods in favor of `Consumer<DelayerEndpointSpec>`-based * * Fix language and code style
This commit is contained in:
@@ -184,7 +184,8 @@ public class IntegrationFlowEventsTests {
|
||||
@Bean
|
||||
public IntegrationFlow delayFlow() {
|
||||
return flow -> flow
|
||||
.delay(GROUP_ID, e -> e
|
||||
.delay(e -> e
|
||||
.messageGroupId(GROUP_ID)
|
||||
.messageStore(messageGroupStore)
|
||||
.id("delayer"))
|
||||
.channel(MessageChannels.queue("delayedResults"));
|
||||
|
||||
Reference in New Issue
Block a user