Class BindingService
java.lang.Object
org.springframework.cloud.stream.binding.BindingService
Handles binding of input/output targets by delegating to an underlying
Binder.- Author:
- Mark Fisher, Dave Syer, Marius Bogoevici, Ilayaperumal Gopinathan`, Gary Russell, Janne Valkealahti, Soby Chacko, Michael Michailidis, Chris Bono
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBindingService(BindingServiceProperties bindingServiceProperties, BinderFactory binderFactory, com.fasterxml.jackson.databind.ObjectMapper objectMapper) BindingService(BindingServiceProperties bindingServiceProperties, BinderFactory binderFactory, org.springframework.scheduling.TaskScheduler taskScheduler, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescription<T> Collection<Binding<T>>bindConsumer(T input, String inputName) <T> Binding<T>bindProducer(T output, String outputName) <T> Binding<T>bindProducer(T output, String outputName, boolean cache) <T> Binding<T>bindProducer(T output, String outputName, boolean cache, Binder<T, ?, ProducerProperties> binder) <T> Binding<T>doBindConsumer(T input, String inputName, Binder<T, ConsumerProperties, ?> binder, ConsumerProperties consumerProperties, String target) <T> Binding<T>doBindPollableConsumer(T input, String inputName, Binder<T, ConsumerProperties, ?> binder, ConsumerProperties consumerProperties, String target) <T> Binding<T>doBindProducer(T output, String bindingTarget, Binder<T, ?, ProducerProperties> binder, ProducerProperties producerProperties) protected <T> Binder<T,?, ?> String[]getExtendedProducerProperties(Object output, String outputName) String[]<T> voidrescheduleConsumerBinding(T input, String inputName, Binder<T, ConsumerProperties, ?> binder, ConsumerProperties consumerProperties, String target, BindingService.LateBinding<T> late, RuntimeException exception) <T> voidreschedulePollableConsumerBinding(T input, String inputName, Binder<T, ConsumerProperties, ?> binder, ConsumerProperties consumerProperties, String target, BindingService.LateBinding<T> late, RuntimeException exception) <T> voidrescheduleProducerBinding(T output, String bindingTarget, Binder<T, ?, ProducerProperties> binder, ProducerProperties producerProperties, BindingService.LateBinding<T> late, RuntimeException exception) voidunbindConsumers(String inputName) voidunbindProducers(String outputName)
-
Constructor Details
-
BindingService
public BindingService(BindingServiceProperties bindingServiceProperties, BinderFactory binderFactory, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
BindingService
public BindingService(BindingServiceProperties bindingServiceProperties, BinderFactory binderFactory, org.springframework.scheduling.TaskScheduler taskScheduler, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
bindConsumer
-
doBindConsumer
public <T> Binding<T> doBindConsumer(T input, String inputName, Binder<T, ConsumerProperties, ?> binder, ConsumerProperties consumerProperties, String target) -
rescheduleConsumerBinding
public <T> void rescheduleConsumerBinding(T input, String inputName, Binder<T, ConsumerProperties, ?> binder, ConsumerProperties consumerProperties, String target, BindingService.LateBinding<T> late, RuntimeException exception) -
doBindPollableConsumer
public <T> Binding<T> doBindPollableConsumer(T input, String inputName, Binder<T, ConsumerProperties, ?> binder, ConsumerProperties consumerProperties, String target) -
reschedulePollableConsumerBinding
public <T> void reschedulePollableConsumerBinding(T input, String inputName, Binder<T, ConsumerProperties, ?> binder, ConsumerProperties consumerProperties, String target, BindingService.LateBinding<T> late, RuntimeException exception) -
bindProducer
public <T> Binding<T> bindProducer(T output, String outputName, boolean cache, @Nullable Binder<T, ?, ProducerProperties> binder) -
bindProducer
-
bindProducer
-
getExtendedProducerProperties
-
getProducerBindingNames
-
getConsumerBindingNames
-
doBindProducer
public <T> Binding<T> doBindProducer(T output, String bindingTarget, Binder<T, ?, ProducerProperties> binder, ProducerProperties producerProperties) -
rescheduleProducerBinding
public <T> void rescheduleProducerBinding(T output, String bindingTarget, Binder<T, ?, ProducerProperties> binder, ProducerProperties producerProperties, BindingService.LateBinding<T> late, RuntimeException exception) -
unbindConsumers
-
unbindProducers
-
getBindingServiceProperties
-
getBinder
-