Interface ProducerBindingCapabilities
public interface ProducerBindingCapabilities
Capabilities for a specific producer binding.
This interface defines the capabilities of a producer binding, including its
acknowledgment mode and error handling configuration. Instances are created by
ProducerBindingCapabilitiesFactory.create(org.springframework.cloud.stream.binder.ProducerProperties) during
workflow initialization.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumProducer acknowledgment modes. -
Method Summary
Modifier and TypeMethodDescriptionGet the acknowledgment mode for this producer binding.Get the binding name.default StringgetErrorsBaseName(String destination, org.springframework.cloud.stream.binder.Binder<?, ?, ?> binder) Get the errors base name for this producer binding.
-
Method Details
-
getBindingName
String getBindingName()Get the binding name.- Returns:
- the producer binding name
-
getAcknowledgmentMode
Get the acknowledgment mode for this producer binding.- Returns:
- the producer acknowledgment mode
-
getErrorsBaseName
default String getErrorsBaseName(String destination, org.springframework.cloud.stream.binder.Binder<?, ?, ?> binder) Get the errors base name for this producer binding.TIP: Only need to override this if the binder overwrites
AbstractMessageChannelBinder.errorsBaseName(ProducerDestination, String).- Parameters:
destination- the producer binding's destinationbinder- the binder instance- Returns:
- producer errors base name
-