public static final class TcpConnectionConfiguration.Builder extends ConnectionConfiguration.Builder<TcpConnectionConfiguration.Builder>
TcpConnectionConfiguration instance.| Modifier and Type | Method and Description |
|---|---|
TcpConnectionConfiguration |
build()
Builds the connection configuration.
|
TcpConnectionConfiguration.Builder |
keepAliveInterval(int keepAliveInterval)
Sets the whitespace keep-alive interval in seconds.
|
TcpConnectionConfiguration.Builder |
socketFactory(SocketFactory socketFactory)
Sets a socket factory which creates the socket.
|
compressionMethods, connectTimeout, hostname, hostnameVerifier, port, proxy, secure, sslContextpublic TcpConnectionConfiguration.Builder keepAliveInterval(int keepAliveInterval)
keepAliveInterval - The whitespace keep-alive interval.public TcpConnectionConfiguration.Builder socketFactory(SocketFactory socketFactory)
However, usually, there's no need to set a custom socket factory.
socketFactory - The socket factory.ConnectionConfiguration.Builder.secure(boolean)public TcpConnectionConfiguration build()
ConnectionConfiguration.Builderbuild in class ConnectionConfiguration.Builder<TcpConnectionConfiguration.Builder>Copyright © 2014–2017 XMPP.rocks. All rights reserved.