Interface ReregistrationPredicate


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

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

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

      • DEFAULT

        static final ReregistrationPredicate DEFAULT
        Default implementation that performs re-registration when the status code is either 404 or 500.
    • Method Detail

      • 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