Class BindingProperties
- java.lang.Object
-
- org.springframework.cloud.stream.config.BindingProperties
-
@Validated public class BindingProperties extends Object
Contains the properties of a binding.- Author:
- Marius Bogoevici, Ilayaperumal Gopinathan, Gary Russell, Soby Chacko, Oleg Zhurakousky
-
-
Field Summary
Fields Modifier and Type Field Description static org.springframework.util.MimeTypeDEFAULT_CONTENT_TYPEDefault content type for bindings.
-
Constructor Summary
Constructors Constructor Description BindingProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBinder()ConsumerPropertiesgetConsumer()StringgetContentType()StringgetDestination()StringgetErrorHandlerDefinition()StringgetGroup()ProducerPropertiesgetProducer()@javax.validation.constraints.AssertTrue(message="A binding must not set both producer and consumer properties.") booleanonlyOneOfProducerOrConsumerSet()voidsetBinder(String binder)voidsetConsumer(ConsumerProperties consumer)voidsetContentType(String contentType)voidsetDestination(String destination)voidsetErrorHandlerDefinition(String errorHandlerDefinition)voidsetGroup(String group)voidsetProducer(ProducerProperties producer)StringtoString()
-
-
-
Method Detail
-
getDestination
public String getDestination()
-
setDestination
public void setDestination(String destination)
-
getGroup
public String getGroup()
-
setGroup
public void setGroup(String group)
-
getContentType
public String getContentType()
-
setContentType
public void setContentType(String contentType)
-
getBinder
public String getBinder()
-
setBinder
public void setBinder(String binder)
-
getConsumer
public ConsumerProperties getConsumer()
-
setConsumer
public void setConsumer(ConsumerProperties consumer)
-
getProducer
public ProducerProperties getProducer()
-
setProducer
public void setProducer(ProducerProperties producer)
-
onlyOneOfProducerOrConsumerSet
@AssertTrue(message="A binding must not set both producer and consumer properties.") public @javax.validation.constraints.AssertTrue(message="A binding must not set both producer and consumer properties.") boolean onlyOneOfProducerOrConsumerSet()
-
getErrorHandlerDefinition
public String getErrorHandlerDefinition()
-
setErrorHandlerDefinition
public void setErrorHandlerDefinition(String errorHandlerDefinition)
-
-