Class BlockingRetryProperties
java.lang.Object
com.broadleafcommerce.common.messaging.retry.blocking.BlockingRetryProperties
@ConfigurationProperties("broadleaf.messaging.blocking.retry.cloud.stream")
public class BlockingRetryProperties
extends Object
Configure blocking retry. This is an opinionated configuration, but at the same time tries to
compact different binder implementation concerns into a unified config. When
isEnabled() is true:
- Default to blocking retry with seek to current offset for kafka (i.e.
BlockingFixedRetryInfo.Kafka.isSeekToCurrentRecordOnFailure()is true). If the default is changed, then in-memory Spring retry will be used instead, in which case, care should be taken to not exceedmax.poll.interval.msfor the aggregate of the retry timeline when using Kafka. - Using in-memory Spring retry as the retry approach for all non-kafka binders
- Configure which exceptions are retryable, allowing all if not specified
- Standardize on fixed backoff via configuration
- Specify a DLQ, if desired
Note - Consuming batches is not currently supported with this configuration.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe retry configurations associated by the original consumer bindingsinthashCode()booleanWhether the blocking retry feature is enabledvoidsetBindings(Map<String, BlockingFixedRetryInfo> bindings) The retry configurations associated by the original consumer bindingsvoidsetEnabled(boolean enabled) Whether the blocking retry feature is enabledvoidtoString()
-
Field Details
-
PREFIX
- See Also:
-
ENABLED_PROP
- See Also:
-
-
Constructor Details
-
BlockingRetryProperties
public BlockingRetryProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether the blocking retry feature is enabled -
getBindings
The retry configurations associated by the original consumer bindings- See Also:
-
getPubSub
-
setEnabled
public void setEnabled(boolean enabled) Whether the blocking retry feature is enabled -
setBindings
The retry configurations associated by the original consumer bindings- See Also:
-
setPubSub
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-