Class BinaryExceptionClassifierBuilder

java.lang.Object
org.springframework.classify.BinaryExceptionClassifierBuilder

public class BinaryExceptionClassifierBuilder extends Object
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