Package markets.alpaca.client.sse
Class AlpacaSseOptions.Builder
java.lang.Object
markets.alpaca.client.sse.AlpacaSseOptions.Builder
- Enclosing class:
- AlpacaSseOptions
Builder for
AlpacaSseOptions. Null idle/max durations disable those limits.-
Method Summary
Modifier and TypeMethodDescriptionbuild()connectTimeout(Duration connectTimeout) idleTimeout(Duration idleTimeout) initialLastEventId(String initialLastEventId) Sets the initial SSE resume cursor.maxDuration(Duration maxDuration) maxErrorBodyBytes(long maxErrorBodyBytes) maxEventBytes(long maxEventBytes) maxLineBytes(long maxLineBytes) reconnectPolicy(AlpacaSseReconnectPolicy reconnectPolicy)
-
Method Details
-
reconnectPolicy
-
initialLastEventId
Sets the initial SSE resume cursor.The cursor must not be empty. Unicode is supported; HTTP control characters are rejected because the cursor is sent in
Last-Event-ID. -
connectTimeout
-
idleTimeout
-
maxDuration
-
maxLineBytes
-
maxEventBytes
-
maxErrorBodyBytes
-
build
-