Package | Description |
---|---|
rocks.xmpp.core.session |
Provides classes related to an XMPP session.
|
Modifier and Type | Method and Description |
---|---|
static ReconnectionStrategy |
ReconnectionStrategy.alwaysAfter(java.time.Duration duration)
Reconnects always after a fix duration, e.g. after 10 seconds.
|
static ReconnectionStrategy |
ReconnectionStrategy.alwaysRandomlyAfter(java.time.Duration min,
java.time.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.
|
Modifier and Type | Method and 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.
|
Copyright © 2014–2019 XMPP.rocks. All rights reserved.