public class BinaryExceptionClassifierBuilder extends Object
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.
Constructor and Description |
---|
BinaryExceptionClassifierBuilder() |
Modifier and Type | Method and Description |
---|---|
BinaryExceptionClassifier |
build() |
BinaryExceptionClassifierBuilder |
notRetryOn(Class<? extends Throwable> throwable) |
BinaryExceptionClassifierBuilder |
retryOn(Class<? extends Throwable> throwable) |
BinaryExceptionClassifierBuilder |
traversingCauses() |
public BinaryExceptionClassifierBuilder retryOn(Class<? extends Throwable> throwable)
public BinaryExceptionClassifierBuilder notRetryOn(Class<? extends Throwable> throwable)
public BinaryExceptionClassifierBuilder traversingCauses()
public BinaryExceptionClassifier build()
Copyright © 2020 SpringSource. All rights reserved.