public static final class RetryInterceptorBuilder.StatefulRetryInterceptorBuilder extends RetryInterceptorBuilder<RetryInterceptorBuilder.StatefulRetryInterceptorBuilder,org.springframework.retry.interceptor.StatefulRetryOperationsInterceptor>
RetryInterceptorBuilder.StatefulRetryInterceptorBuilder, RetryInterceptorBuilder.StatelessRetryInterceptorBuilder
Modifier and Type | Method and Description |
---|---|
org.springframework.retry.interceptor.StatefulRetryOperationsInterceptor |
build() |
RetryInterceptorBuilder.StatefulRetryInterceptorBuilder |
messageKeyGenerator(MessageKeyGenerator messageKeyGenerator)
Stateful retry requires messages to be identifiable.
|
RetryInterceptorBuilder.StatefulRetryInterceptorBuilder |
newMessageIdentifier(NewMessageIdentifier newMessageIdentifier)
Apply a custom new message identifier.
|
_this, applyCommonSettings, backOffOptions, backOffPolicy, maxAttempts, recoverer, retryOperations, retryPolicy, stateful, stateless
public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder messageKeyGenerator(MessageKeyGenerator messageKeyGenerator)
messageKeyGenerator
- The key generator.public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder newMessageIdentifier(NewMessageIdentifier newMessageIdentifier)
newMessageIdentifier
- The new message identifier.public org.springframework.retry.interceptor.StatefulRetryOperationsInterceptor build()
build
in class RetryInterceptorBuilder<RetryInterceptorBuilder.StatefulRetryInterceptorBuilder,org.springframework.retry.interceptor.StatefulRetryOperationsInterceptor>