Package org.springframework.classify
Class BinaryExceptionClassifierBuilder
java.lang.Object
org.springframework.classify.BinaryExceptionClassifierBuilder
Fluent API for BinaryExceptionClassifier configuration.
Can be used in while list style:
BinaryExceptionClassifier.newBuilder()
.retryOn(IOException.class)
.retryOn(IllegalArgumentException.class)
.build();
or in black list style:
BinaryExceptionClassifier.newBuilder()
.notRetryOn(Error.class)
.build();
Provides traverseCauses=false by default, and no default rules for exceptions.
Not thread safe. Building should be performed in a single thread, publishing of newly created instance should be safe.
- Author:
- Aleksandr Shamukov
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
BinaryExceptionClassifierBuilder
public BinaryExceptionClassifierBuilder()
-
-
Method Details
-
retryOn
-
notRetryOn
-
traversingCauses
-
build
-