Package rocks.xmpp.core.net.client
Class TcpConnectionConfiguration
- java.lang.Object
-
- rocks.xmpp.core.net.client.ClientConnectionConfiguration
-
- rocks.xmpp.core.net.client.TcpConnectionConfiguration
-
- All Implemented Interfaces:
ConnectionConfiguration
public final class TcpConnectionConfiguration extends ClientConnectionConfiguration
A configuration for a TCP connection.- See Also:
BoshConnectionConfiguration
,SocketConnection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TcpConnectionConfiguration.Builder
A builder to create aTcpConnectionConfiguration
instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TcpConnectionConfiguration.Builder
builder()
Creates a new builder for this class.CompletableFuture<Connection>
createConnection(XmppSession xmppSession, SessionOpen sessionOpen)
A factory method to create the connection.Duration
getKeepAliveInterval()
Gets the whitespace keep-alive interval.-
Methods inherited from class rocks.xmpp.core.net.client.ClientConnectionConfiguration
getChannelEncryption, getCompressionMethods, getConnectTimeout, getHostname, getHostnameVerifier, getPort, getProxy, getSSLContext, toString
-
-
-
-
Method Detail
-
builder
public static TcpConnectionConfiguration.Builder builder()
Creates a new builder for this class.- Returns:
- The builder.
-
getKeepAliveInterval
public final Duration getKeepAliveInterval()
Gets the whitespace keep-alive interval.- Returns:
- The whitespace keep-alive interval.
-
createConnection
public CompletableFuture<Connection> createConnection(XmppSession xmppSession, SessionOpen sessionOpen)
Description copied from class:ClientConnectionConfiguration
A factory method to create the connection.- Specified by:
createConnection
in classClientConnectionConfiguration
- Parameters:
xmppSession
- The XMPP session, which is associated with the connection.sessionOpen
- The session open element.- Returns:
- The connection.
-
-