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 Summary
Modifier and TypeMethodDescriptioncom.palantir.dialogue.ChannelReturns a channel which will route all requests to a single host, even if that host returns some 429s.session()Creates a newDialogueClients.StickyChannelSessionwhich can be used to create multiple clients bound to the same session.<T> T
-
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
-
session
DialogueClients.StickyChannelSession session()Creates a newDialogueClients.StickyChannelSessionwhich can be used to create multiple clients bound to the same session.
-