Uses of Interface
rocks.xmpp.core.session.ReconnectionStrategy
-
Packages that use ReconnectionStrategy Package Description rocks.xmpp.core.session Provides classes related to an XMPP session. -
-
Uses of ReconnectionStrategy in rocks.xmpp.core.session
Methods in rocks.xmpp.core.session that return ReconnectionStrategy Modifier and Type Method Description static ReconnectionStrategy
ReconnectionStrategy. alwaysAfter(Duration duration)
Reconnects always after a fix duration, e.g. after 10 seconds.static ReconnectionStrategy
ReconnectionStrategy. alwaysRandomlyAfter(Duration min, Duration max)
Reconnects always after a random duration which lies between the given min and max duration, e.g. after 10-20 seconds.ReconnectionStrategy
XmppSessionConfiguration. getReconnectionStrategy()
Gets the reconnection strategy.static ReconnectionStrategy
ReconnectionStrategy. none()
Reconnection won't happen automatically, i.e. it's disabled.static ReconnectionStrategy
ReconnectionStrategy. onSystemShutdownFirstOrElseSecond(ReconnectionStrategy first, ReconnectionStrategy second)
Uses a hybrid reconnection strategy, which uses the first one on system shutdown and the second one on every other disconnection cause.static ReconnectionStrategy
ReconnectionStrategy. truncatedBinaryExponentialBackoffStrategy(int slotTime, int ceiling)
This is the default reconnection strategy.Methods in rocks.xmpp.core.session with parameters of type ReconnectionStrategy Modifier and Type Method Description static ReconnectionStrategy
ReconnectionStrategy. onSystemShutdownFirstOrElseSecond(ReconnectionStrategy first, ReconnectionStrategy second)
Uses a hybrid reconnection strategy, which uses the first one on system shutdown and the second one on every other disconnection cause.XmppSessionConfiguration.Builder
XmppSessionConfiguration.Builder. reconnectionStrategy(ReconnectionStrategy reconnectionStrategy)
Sets the reconnection strategy, which determined when to reconnect after a disconnection.
-