Interface ReregistrationPredicate


public interface ReregistrationPredicate
Predicate on whether to re-register service.
Author:
Toshiaki Maki
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Default implementation that performs re-registration when the status code is either 404 or 500.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isEligible(com.ecwid.consul.v1.OperationException e)
    test if the exception is eligible for re-registration.
  • Field Details

    • DEFAULT

      static final ReregistrationPredicate 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