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 |
compressionMethod(CompressionMethod compressionMethod)
Sets the compression method.
|
TcpConnectionConfiguration.Builder |
keepAliveInterval(int keepAliveInterval)
Sets the whitespace keep-alive interval in seconds.
|
protected TcpConnectionConfiguration.Builder |
self()
Returns an instance of the concrete builder.
|
TcpConnectionConfiguration.Builder |
socketFactory(SocketFactory socketFactory)
Sets a socket factory which creates the socket.
|
hostname, hostnameVerifier, port, proxy, secure, sslContextpublic TcpConnectionConfiguration.Builder keepAliveInterval(int keepAliveInterval)
keepAliveInterval - The whitespace keep-alive interval.public TcpConnectionConfiguration.Builder compressionMethod(CompressionMethod compressionMethod)
compressionMethod - The compression method.public TcpConnectionConfiguration.Builder socketFactory(SocketFactory socketFactory)
socketFactory - The socket factory.protected TcpConnectionConfiguration.Builder self()
ConnectionConfiguration.Builderself in class ConnectionConfiguration.Builder<TcpConnectionConfiguration.Builder>public TcpConnectionConfiguration build()
ConnectionConfiguration.Builderbuild in class ConnectionConfiguration.Builder<TcpConnectionConfiguration.Builder>Copyright © 2014 XMPP.rocks. All rights reserved.