| Package | Description |
|---|---|
| rocks.xmpp.core.session |
Provides classes related to an XMPP session.
|
| Modifier and Type | Method and Description |
|---|---|
static ReconnectionStrategy |
ReconnectionStrategy.after(long duration,
TimeUnit timeUnit)
Deprecated.
|
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.
|
ReconnectionStrategy |
ReconnectionManager.getReconnectionStrategy()
Deprecated.
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 used by the
ReconnectionManager. |
| 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.
|
void |
ReconnectionManager.setReconnectionStrategy(ReconnectionStrategy reconnectionStrategy)
|
Copyright © 2014–2018 XMPP.rocks. All rights reserved.