Interface DialogueClients.StickyChannelFactory

Enclosing class:
DialogueClients

public static interface DialogueClients.StickyChannelFactory
A stateful object - should only need one of these. Live reloads under the hood.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    getCurrentBest(Class<T> clientInterface)
     
    com.palantir.dialogue.Channel
    Returns a channel which will route all requests to a single host, even if that host returns some 429s.
  • Method Details

    • getStickyChannel

      com.palantir.dialogue.Channel getStickyChannel()
      Returns a channel which will route all requests to a single host, even if that host returns some 429s. Each successive call to this method may get a different channel (or it may return the same one).
    • getCurrentBest

      <T> T getCurrentBest(Class<T> clientInterface)