INT-4383 Expose errorChannel in EnricherSpec
JIRA: https://jira.spring.io/browse/INT-4383
This commit is contained in:
committed by
Artem Bilan
parent
56ffed0801
commit
061dcb1b87
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2017 the original author or authors.
|
||||
* Copyright 2016-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -42,6 +42,7 @@ import reactor.util.function.Tuple2;
|
||||
* @author Artem Bilan
|
||||
* @author Tim Ysewyn
|
||||
* @author Ian Bondoc
|
||||
* @author Alexis Hafner
|
||||
*
|
||||
* @since 5.0
|
||||
*/
|
||||
@@ -96,6 +97,28 @@ public class EnricherSpec extends ConsumerEndpointSpec<EnricherSpec, ContentEnri
|
||||
return _this();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param errorChannel the error channel.
|
||||
* @return the enricher spec.
|
||||
* @see ContentEnricher#setErrorChannel(MessageChannel)
|
||||
* @since 5.0.1
|
||||
*/
|
||||
public EnricherSpec errorChannel(MessageChannel errorChannel) {
|
||||
this.handler.setErrorChannel(errorChannel);
|
||||
return _this();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param errorChannel the name of the error channel bean.
|
||||
* @return the enricher spec.
|
||||
* @see ContentEnricher#setErrorChannelName(String)
|
||||
* @since 5.0.1
|
||||
*/
|
||||
public EnricherSpec errorChannel(String errorChannel) {
|
||||
this.handler.setErrorChannelName(errorChannel);
|
||||
return _this();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param requestTimeout the requestTimeout
|
||||
* @return the enricher spec.
|
||||
|
||||
Reference in New Issue
Block a user