Package io.hekate.messaging.retry
Interface GenericRetryConfigurer
-
- All Known Implementing Classes:
RpcRetryInfo
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface GenericRetryConfigurer
Generic retry policy for a messaging channel.Instances of this interface are responsible for providing a default retry policy for messaging operations of a
MessagingChannel
and can be registered via theMessagingChannelConfig.setRetryPolicy(GenericRetryConfigurer)
.This policy can be overridden for each individual operation via the following methods:
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
configure(RetryPolicy<?> retry)
Configures the retry policy.static GenericRetryConfigurer
noRetries()
Do not retry.
-
-
-
Method Detail
-
configure
void configure(RetryPolicy<?> retry)
Configures the retry policy.- Parameters:
retry
- Retry policy.
-
noRetries
static GenericRetryConfigurer noRetries()
Do not retry.- Returns:
- Policy that doesn't retry failed operations.
-
-