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:
  • Method Details

    • getBindingName

      String getBindingName()
      Get the binding name.
      Returns:
      the producer binding name
    • getAcknowledgmentMode

      default ProducerBindingCapabilities.ProducerAckMode 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 destination
      binder - the binder instance
      Returns:
      producer errors base name