Package rocks.xmpp.core.net.client
Class TcpConnectionConfiguration.Builder
- java.lang.Object
-
- rocks.xmpp.core.net.client.ClientConnectionConfiguration.Builder<TcpConnectionConfiguration.Builder,TcpConnectionConfiguration>
-
- rocks.xmpp.core.net.client.TcpConnectionConfiguration.Builder
-
- Enclosing class:
- TcpConnectionConfiguration
public static class TcpConnectionConfiguration.Builder extends ClientConnectionConfiguration.Builder<TcpConnectionConfiguration.Builder,TcpConnectionConfiguration>
A builder to create aTcpConnectionConfiguration
instance.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TcpConnectionConfiguration
build()
Builds the connection configuration.TcpConnectionConfiguration.Builder
keepAliveInterval(Duration keepAliveInterval)
Sets the whitespace keep-alive interval.-
Methods inherited from class rocks.xmpp.core.net.client.ClientConnectionConfiguration.Builder
channelEncryption, compressionMethods, connector, connectTimeout, getConnector, hostname, hostnameVerifier, port, proxy, sslContext
-
-
-
-
Method Detail
-
build
public TcpConnectionConfiguration build()
Description copied from class:ClientConnectionConfiguration.Builder
Builds the connection configuration.- Specified by:
build
in classClientConnectionConfiguration.Builder<TcpConnectionConfiguration.Builder,TcpConnectionConfiguration>
- Returns:
- The concrete connection configuration.
-
keepAliveInterval
public final TcpConnectionConfiguration.Builder keepAliveInterval(Duration keepAliveInterval)
Sets the whitespace keep-alive interval. If the interval is negative, no whitespace will be sent at all.- Parameters:
keepAliveInterval
- The whitespace keep-alive interval.- Returns:
- The builder.
-
-