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 TypeMethodDescription<T> TgetCurrentBest(Class<T> clientInterface) com.palantir.dialogue.ChannelReturns 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
-