Package com.hivemq.client.mqtt
Interface MqttWebSocketConfigBuilderBase<B extends MqttWebSocketConfigBuilderBase<B>>
- Type Parameters:
B- the type of the builder.
- All Known Subinterfaces:
MqttWebSocketConfigBuilder,MqttWebSocketConfigBuilder.Nested<P>
@DoNotImplement
public interface MqttWebSocketConfigBuilderBase<B extends MqttWebSocketConfigBuilderBase<B>>
Builder base for a
MqttWebSocketConfig.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionhandshakeTimeout(long timeout, @NotNull TimeUnit timeUnit) Sets thewebsocket handshake timeout.httpHeaders(@NotNull Map<String, String> httpHeaders) Sets theheaders.queryString(@NotNull String queryString) Sets thequery string.serverPath(@NotNull String serverPath) Sets theserver path.subprotocol(@NotNull String subprotocol) Sets thesubprotocol.
-
Method Details
-
serverPath
Sets theserver path.- Parameters:
serverPath- the server path.- Returns:
- the builder.
-
queryString
Sets thequery string.- Parameters:
queryString- the query string.- Returns:
- the builder.
-
subprotocol
Sets thesubprotocol.- Parameters:
subprotocol- the subprotocol.- Returns:
- the builder.
-
handshakeTimeout
Sets thewebsocket handshake timeout.The timeout in milliseconds must be in the range: [0,
Integer.MAX_VALUE].- Parameters:
timeout- the websocket handshake timeout or0to disable the timeout.timeUnit- the time unit of the given timeout (this timeout only supports millisecond precision).- Returns:
- the builder.
- Since:
- 1.2
-
httpHeaders
Sets theheaders.- Parameters:
httpHeaders- http headers.- Returns:
- the builder.
-