B
- the type of the builder.@DoNotImplement public interface MqttWebSocketConfigBuilderBase<B extends MqttWebSocketConfigBuilderBase<B>>
MqttWebSocketConfig
.Modifier and Type | Method and Description |
---|---|
B |
handshakeTimeout(long timeout,
@NotNull TimeUnit timeUnit)
Sets the
websocket handshake timeout . |
B |
queryString(@NotNull String queryString)
Sets the
query string . |
B |
serverPath(@NotNull String serverPath)
Sets the
server path . |
B |
subprotocol(@NotNull String subprotocol)
Sets the
subprotocol . |
@CheckReturnValue @NotNull B serverPath(@NotNull @NotNull String serverPath)
server path
.serverPath
- the server path.@CheckReturnValue @NotNull B queryString(@NotNull @NotNull String queryString)
query string
.queryString
- the query string.@CheckReturnValue @NotNull B subprotocol(@NotNull @NotNull String subprotocol)
subprotocol
.subprotocol
- the subprotocol.@CheckReturnValue @NotNull B handshakeTimeout(long timeout, @NotNull @NotNull TimeUnit timeUnit)
websocket handshake timeout
.
The timeout in milliseconds must be in the range: [0, Integer.MAX_VALUE
].
timeout
- the websocket handshake timeout or 0
to disable the timeout.timeUnit
- the time unit of the given timeout (this timeout only supports millisecond precision).