Fix depreactions
This commit is contained in:
@@ -37,16 +37,6 @@ public class InputDestination extends AbstractDestination {
|
||||
this.getChannel(0).send(message);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param message message to send
|
||||
* @param inputIndex input index
|
||||
* @deprecated since 3.0.2 in favor of {@link #receive(long, String)} where you should use the actual binding name (e.g., "foo-in-0")
|
||||
*/
|
||||
@Deprecated
|
||||
public void send(Message<?> message, int inputIndex) {
|
||||
this.getChannel(inputIndex).send(message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Allows the {@link Message} to be sent to a Binder's destination.<br>
|
||||
* This needs a bit of clarification. Just like with any binder, 'destination'
|
||||
|
||||
@@ -56,24 +56,6 @@ public class PartitionHandler {
|
||||
|
||||
private volatile int partitionCount;
|
||||
|
||||
/**
|
||||
* Construct a {@code PartitionHandler}.
|
||||
* @param evaluationContext evaluation context for binder
|
||||
* @param properties binder properties
|
||||
* @param partitionKeyExtractorStrategy PartitionKeyExtractor strategy
|
||||
* @param partitionSelectorStrategy PartitionSelector strategy
|
||||
*
|
||||
* @deprecated since 3.0.2. Please use another constructor which allows you to pass an instance of beanFactory
|
||||
*/
|
||||
@Deprecated
|
||||
public PartitionHandler(EvaluationContext evaluationContext,
|
||||
ProducerProperties properties,
|
||||
PartitionKeyExtractorStrategy partitionKeyExtractorStrategy,
|
||||
PartitionSelectorStrategy partitionSelectorStrategy) {
|
||||
|
||||
this(evaluationContext, properties, (ConfigurableListableBeanFactory) extractBeanFactoryFromEvaluationContext(evaluationContext));
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a {@code PartitionHandler}.
|
||||
* @param evaluationContext evaluation context for binder
|
||||
|
||||
@@ -44,7 +44,6 @@ import org.springframework.core.convert.converter.Converter;
|
||||
import org.springframework.core.convert.support.GenericConversionService;
|
||||
import org.springframework.integration.support.utils.IntegrationUtils;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
/**
|
||||
* @author Dave Syer
|
||||
@@ -62,15 +61,6 @@ public class BindingServiceProperties
|
||||
|
||||
private static final int DEFAULT_BINDING_RETRY_INTERVAL = 30;
|
||||
|
||||
/**
|
||||
* A semi-colon delimited string representing the names of the sources based on which source bindings will be created.
|
||||
* This is primarily to support cases where source binding may be required without providing a corresponding Supplier.
|
||||
* (e.g., for cases where the actual source of data is outside of scope of spring-cloud-stream - HTTP -> Stream)
|
||||
* @deprecated use {@link #outputBindings}
|
||||
*/
|
||||
@Deprecated
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* A semi-colon delimited string to explicitly define input bindings (specifically for cases when there
|
||||
* is no implicit trigger to create such bindings such as Function, Supplier or Consumer).
|
||||
@@ -308,23 +298,6 @@ public class BindingServiceProperties
|
||||
this.bindingRetryInterval = bindingRetryInterval;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated in favor of {@link #getOutputBindings()}
|
||||
*/
|
||||
@Deprecated
|
||||
public String getSource() {
|
||||
return source;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated in favor of {@link #setOutputBindings()}
|
||||
*/
|
||||
@Deprecated
|
||||
public void setSource(String source) {
|
||||
this.source = source;
|
||||
this.outputBindings = source;
|
||||
}
|
||||
|
||||
public void updateProducerProperties(String bindingName,
|
||||
ProducerProperties producerProperties) {
|
||||
if (this.bindings.containsKey(bindingName)) {
|
||||
@@ -354,8 +327,6 @@ public class BindingServiceProperties
|
||||
}
|
||||
|
||||
public void setOutputBindings(String outputBindings) {
|
||||
Assert.state(!StringUtils.hasText(this.source), "Setting 'source' and 'output-binding' is not allowed "
|
||||
+ "because 'source' is deprecated in favor of 'output-binding'.");
|
||||
this.outputBindings = outputBindings;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user