Package io.grpc

Interface ServiceProviders.PriorityAccessor<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getPriority​(T provider)
      A priority, from 0 to 10 that this provider should be used, taking the current environment into consideration.
      boolean isAvailable​(T provider)
      Checks this provider is available for use, taking the current environment into consideration.
    • Method Detail

      • isAvailable

        boolean isAvailable​(T provider)
        Checks this provider is available for use, taking the current environment into consideration. If false, no other methods are safe to be called.
      • getPriority

        int getPriority​(T provider)
        A priority, from 0 to 10 that this provider should be used, taking the current environment into consideration. 5 should be considered the default, and then tweaked based on environment detection. A priority of 0 does not imply that the provider wouldn't work; just that it should be last in line.