Class AbstractTestBinder<C extends org.springframework.cloud.stream.binder.AbstractBinder<org.springframework.messaging.MessageChannel,CP,PP>,CP extends org.springframework.cloud.stream.binder.ConsumerProperties,PP extends org.springframework.cloud.stream.binder.ProducerProperties>
java.lang.Object
org.springframework.cloud.stream.binder.AbstractTestBinder<C,CP,PP>
- Type Parameters:
C- binder typeCP- consumer properties typePP- producer properties type
- All Implemented Interfaces:
org.springframework.cloud.stream.binder.Binder<org.springframework.messaging.MessageChannel,CP, PP>
- Direct Known Subclasses:
AbstractPollableConsumerTestBinder
public abstract class AbstractTestBinder<C extends org.springframework.cloud.stream.binder.AbstractBinder<org.springframework.messaging.MessageChannel,CP,PP>,CP extends org.springframework.cloud.stream.binder.ConsumerProperties,PP extends org.springframework.cloud.stream.binder.ProducerProperties>
extends Object
implements org.springframework.cloud.stream.binder.Binder<org.springframework.messaging.MessageChannel,CP,PP>
Abstract class that adds test support for
Binder.- Author:
- Ilayaperumal Gopinathan, Gary Russell, Mark Fisher, Oleg Zhurakousky, Byungjun You
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.cloud.stream.binder.Binding<org.springframework.messaging.MessageChannel>bindConsumer(String name, String group, org.springframework.messaging.MessageChannel moduleInputChannel, CP properties) org.springframework.cloud.stream.binder.Binding<org.springframework.messaging.MessageChannel>bindProducer(String name, org.springframework.messaging.MessageChannel moduleOutputChannel, PP properties) abstract voidcleanup()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cloud.stream.binder.Binder
getBinderIdentity
-
Field Details
-
queues
-
-
Constructor Details
-
AbstractTestBinder
public AbstractTestBinder()
-
-
Method Details
-
bindConsumer
public org.springframework.cloud.stream.binder.Binding<org.springframework.messaging.MessageChannel> bindConsumer(String name, String group, org.springframework.messaging.MessageChannel moduleInputChannel, CP properties) - Specified by:
bindConsumerin interfaceorg.springframework.cloud.stream.binder.Binder<C extends org.springframework.cloud.stream.binder.AbstractBinder<org.springframework.messaging.MessageChannel,CP, PP>, CP extends org.springframework.cloud.stream.binder.ConsumerProperties, PP extends org.springframework.cloud.stream.binder.ProducerProperties>
-
bindProducer
public org.springframework.cloud.stream.binder.Binding<org.springframework.messaging.MessageChannel> bindProducer(String name, org.springframework.messaging.MessageChannel moduleOutputChannel, PP properties) - Specified by:
bindProducerin interfaceorg.springframework.cloud.stream.binder.Binder<C extends org.springframework.cloud.stream.binder.AbstractBinder<org.springframework.messaging.MessageChannel,CP, PP>, CP extends org.springframework.cloud.stream.binder.ConsumerProperties, PP extends org.springframework.cloud.stream.binder.ProducerProperties>
-
getCoreBinder
-
cleanup
public abstract void cleanup() -
getBinder
-
setBinder
-