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