Class UrlSelector

java.lang.Object
io.confluent.security.auth.client.rest.UrlSelector

public class UrlSelector extends Object
  • Constructor Details

    • UrlSelector

      public UrlSelector(List<String> urls)
  • Method Details

    • current

      public String current()
      Get the current url
      Returns:
      the url
    • fail

      public void fail()
      Declare the current url as failed. This will cause the urls to rotate, so that the next request will be done against a new url (if one exists).
    • round

      public int round()
      0-index "round" number we are on. I.e. how many times we've tried each URL
    • failures

      public int failures()
    • size

      public int size()
    • index

      public int index()
    • toString

      public String toString()
      Overrides:
      toString in class Object