Package rocks.xmpp.nio.netty.client
Class NettyTcpConnectionConfiguration.Builder
- java.lang.Object
-
- rocks.xmpp.core.net.client.ClientConnectionConfiguration.Builder<NettyTcpConnectionConfiguration.Builder,TcpConnectionConfiguration>
-
- rocks.xmpp.nio.netty.client.NettyTcpConnectionConfiguration.Builder
-
- Enclosing class:
- NettyTcpConnectionConfiguration
public static final class NettyTcpConnectionConfiguration.Builder extends ClientConnectionConfiguration.Builder<NettyTcpConnectionConfiguration.Builder,TcpConnectionConfiguration>
A builder to create aNettyTcpConnectionConfiguration
instance.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NettyTcpConnectionConfiguration
build()
Builds the connection configuration.NettyTcpConnectionConfiguration.Builder
eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
Sets the NIO event loop.NettyTcpConnectionConfiguration.Builder
keepAliveInterval(int keepAliveInterval)
-
Methods inherited from class rocks.xmpp.core.net.client.ClientConnectionConfiguration.Builder
channelEncryption, compressionMethods, connector, connectTimeout, getConnector, hostname, hostnameVerifier, port, proxy, sslContext
-
-
-
-
Method Detail
-
eventLoopGroup
public NettyTcpConnectionConfiguration.Builder eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
Sets the NIO event loop.- Parameters:
eventLoopGroup
- The loop.- Returns:
- The builder.
-
keepAliveInterval
public final NettyTcpConnectionConfiguration.Builder keepAliveInterval(int keepAliveInterval)
-
build
public final NettyTcpConnectionConfiguration build()
Description copied from class:ClientConnectionConfiguration.Builder
Builds the connection configuration.- Specified by:
build
in classClientConnectionConfiguration.Builder<NettyTcpConnectionConfiguration.Builder,TcpConnectionConfiguration>
- Returns:
- The concrete connection configuration.
-
-