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 ReconnectionStrategyReconnectionStrategy. alwaysAfter(Duration duration)Reconnects always after a fix duration, e.g. after 10 seconds.static ReconnectionStrategyReconnectionStrategy. 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.ReconnectionStrategyXmppSessionConfiguration. getReconnectionStrategy()Gets the reconnection strategy.static ReconnectionStrategyReconnectionStrategy. none()Reconnection won't happen automatically, i.e. it's disabled.static ReconnectionStrategyReconnectionStrategy. 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 ReconnectionStrategyReconnectionStrategy. 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 ReconnectionStrategyReconnectionStrategy. 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.BuilderXmppSessionConfiguration.Builder. reconnectionStrategy(ReconnectionStrategy reconnectionStrategy)Sets the reconnection strategy, which determined when to reconnect after a disconnection.
-