类 BinaryExceptionClassifierBuilder
java.lang.Object
cn.taketoday.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.
- 作者:
- Aleksandr Shamukov
-
字段概要
修饰符和类型字段说明private Boolean
Building notation type (white list or black list) - null: has not selected yet - true: white list - false: black listprivate boolean
-
构造器概要
-
方法概要
-
字段详细资料
-
isWhiteList
Building notation type (white list or black list) - null: has not selected yet - true: white list - false: black list -
traverseCauses
private boolean traverseCauses -
exceptionClasses
-
-
构造器详细资料
-
BinaryExceptionClassifierBuilder
public BinaryExceptionClassifierBuilder()
-
-
方法详细资料
-
retryOn
-
notRetryOn
-
traversingCauses
-
build
-