public static final class WebSocketConnectionConfiguration.Builder extends ClientConnectionConfiguration.Builder<WebSocketConnectionConfiguration.Builder>
A builder to create a WebSocketConnectionConfiguration
instance.
Modifier and Type | Method and Description |
---|---|
WebSocketConnectionConfiguration |
build()
Builds the connection configuration.
|
WebSocketConnectionConfiguration.Builder |
path(java.lang.String path)
Sets the path on the host, e.g.
|
WebSocketConnectionConfiguration.Builder |
pingInterval(java.time.Duration pingInterval)
Sets the ping interval.
|
channelEncryption, compressionMethods, connectTimeout, hostname, hostnameVerifier, port, proxy, secure, sslContext
public final WebSocketConnectionConfiguration.Builder path(java.lang.String path)
Sets the path on the host, e.g. “/ws/”
path
- The path on the host.public final WebSocketConnectionConfiguration.Builder pingInterval(java.time.Duration pingInterval)
Sets the ping interval. If not null and non-negative, a WebSocket ping is sent periodically to the server. If no pong is received within the configured response timeout (XmppSessionConfiguration.Builder.defaultResponseTimeout(Duration)
) the XMPP session is closed with an exception.
pingInterval
- The ping interval.public final WebSocketConnectionConfiguration build()
ClientConnectionConfiguration.Builder
Builds the connection configuration.
build
in class ClientConnectionConfiguration.Builder<WebSocketConnectionConfiguration.Builder>
Copyright © 2014–2019 XMPP.rocks. All rights reserved.