Package markets.alpaca.client.sse
Class AlpacaSseReconnectPolicy.Builder
java.lang.Object
markets.alpaca.client.sse.AlpacaSseReconnectPolicy.Builder
- Enclosing class:
- AlpacaSseReconnectPolicy
Builder for
AlpacaSseReconnectPolicy.-
Method Summary
Modifier and TypeMethodDescriptionbuild()establishedAttempts(int establishedAttempts) initialAttempts(int initialAttempts) initialBackoff(Duration initialBackoff) Sets the first client backoff and minimum server-directed delay; must be a whole number of milliseconds and at least 1 ms.jitterRatio(double jitterRatio) maxBackoff(Duration maxBackoff) Sets the cap for client and server-directed reconnect delays; must be a whole number of milliseconds and at least 1 ms.maxElapsedTime(Duration maxElapsedTime) Sets the elapsed-time budget for one initial-open or established reconnect cycle.
-
Method Details
-
initialAttempts
-
establishedAttempts
-
initialBackoff
Sets the first client backoff and minimum server-directed delay; must be a whole number of milliseconds and at least 1 ms. -
maxBackoff
Sets the cap for client and server-directed reconnect delays; must be a whole number of milliseconds and at least 1 ms. -
maxElapsedTime
Sets the elapsed-time budget for one initial-open or established reconnect cycle.Pass
nullto leave reconnect cycles unbounded. -
jitterRatio
-
build
-