R
- result typepublic abstract class FailurePolicyConfig<R> extends PolicyConfig<R>
Modifier | Constructor and Description |
---|---|
protected |
FailurePolicyConfig() |
protected |
FailurePolicyConfig(FailurePolicyConfig<R> config) |
Modifier and Type | Method and Description |
---|---|
List<CheckedBiPredicate<R,Throwable>> |
getFailureConditions()
Returns the conditions under which a result or Throwable should be treated as a failure and handled.
|
boolean |
isExceptionsChecked()
Returns whether exceptions are checked by a configured failure condition.
|
getFailureListener, getSuccessListener
protected FailurePolicyConfig()
protected FailurePolicyConfig(FailurePolicyConfig<R> config)
public boolean isExceptionsChecked()
public List<CheckedBiPredicate<R,Throwable>> getFailureConditions()
Copyright © 2022. All rights reserved.