Interface ReregistrationPredicate
public interface ReregistrationPredicate
Predicate on whether to re-register service.
- Author:
- Toshiaki Maki
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReregistrationPredicateDefault implementation that performs re-registration when the status code is either 404 or 500. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEligible(com.ecwid.consul.v1.OperationException e) test if the exception is eligible for re-registration.
-
Field Details
-
DEFAULT
Default implementation that performs re-registration when the status code is either 404 or 500.
-
-
Method Details
-
isEligible
boolean isEligible(com.ecwid.consul.v1.OperationException e) test if the exception is eligible for re-registration.- Parameters:
e- OperationException- Returns:
- if the exception is eligible for re-registration
-