Interface DialogueClients.StickyChannelFactory2

Enclosing class:
DialogueClients

@Beta public static interface DialogueClients.StickyChannelFactory2
A stateful object - should only need one of these. Live reloads under the hood.
  • 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).
    • sticky

      <T> T sticky(Class<T> clientInterface)
    • session

      Creates a new DialogueClients.StickyChannelSession which can be used to create multiple clients bound to the same session.