Package org.jivesoftware.smack.tcp
Class XMPPTCPConnectionConfiguration.Builder
java.lang.Object
org.jivesoftware.smack.ConnectionConfiguration.Builder<XMPPTCPConnectionConfiguration.Builder,XMPPTCPConnectionConfiguration>
org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration.Builder
- Enclosing class:
XMPPTCPConnectionConfiguration
public static final class XMPPTCPConnectionConfiguration.Builder
extends org.jivesoftware.smack.ConnectionConfiguration.Builder<XMPPTCPConnectionConfiguration.Builder,XMPPTCPConnectionConfiguration>
A configuration builder for XMPP connections over TCP. Use
XMPPTCPConnectionConfiguration.builder() to
obtain a new instance and build() to build the configuration.-
Method Summary
Modifier and TypeMethodDescriptionbuild()protected XMPPTCPConnectionConfiguration.BuildergetThis()setConnectTimeout(int connectTimeout) Set how long the socket will wait until a TCP connection is established (in milliseconds).Methods inherited from class org.jivesoftware.smack.ConnectionConfiguration.Builder
addEnabledSaslMechanism, addEnabledSaslMechanism, allowEmptyOrNullUsernames, enableDefaultDebugger, getKeyManagersFrom, performSaslAnonymousAuthentication, performSaslExternalAuthentication, setAuthzid, setCallbackHandler, setCompressionEnabled, setCustomX509TrustManager, setDebuggerFactory, setDnssecMode, setEnabledSSLCiphers, setEnabledSSLProtocols, setHost, setHost, setHostAddress, setHostnameVerifier, setKeyManager, setKeyManagers, setKeystorePath, setKeystoreType, setLanguage, setPKCS11Library, setPort, setPort, setProxyInfo, setResource, setResource, setSecurityMode, setSendPresence, setServiceName, setSocketFactory, setSslContextFactory, setSslContextSecureRandom, setStanzaIdSourceFactory, setUsernameAndPassword, setXmppAddressAndPassword, setXmppAddressAndPassword, setXmppDomain, setXmppDomain
-
Method Details
-
setConnectTimeout
Set how long the socket will wait until a TCP connection is established (in milliseconds).- Parameters:
connectTimeout- the timeout value to be used in milliseconds.- Returns:
- a reference to this object.
-
getThis
- Specified by:
getThisin classorg.jivesoftware.smack.ConnectionConfiguration.Builder<XMPPTCPConnectionConfiguration.Builder,XMPPTCPConnectionConfiguration>
-
build
- Specified by:
buildin classorg.jivesoftware.smack.ConnectionConfiguration.Builder<XMPPTCPConnectionConfiguration.Builder,XMPPTCPConnectionConfiguration>
-