setReconnectionStrategy(ReconnectionStrategy), use XmppSessionConfiguration.Builder.reconnectionStrategy(ReconnectionStrategy) instead.@Deprecated public final class ReconnectionManager extends Manager
Reconnection is not performed, if the user got disconnected due to an <conflict/> stream error.
Generally speaking it is 2^attempt * 60 seconds.
You can also set your own reconnection strategy.
Use getNextReconnectionAttempt() if you want to find out, when the next reconnection attempt will happen.
| Modifier and Type | Method and Description |
|---|---|
Instant |
getNextReconnectionAttempt()
Deprecated.
Gets the date of the next reconnection attempt.
|
ReconnectionStrategy |
getReconnectionStrategy()
Deprecated.
Gets the reconnection strategy.
|
void |
setReconnectionStrategy(ReconnectionStrategy reconnectionStrategy)
|
isEnabled, setEnabledpublic final ReconnectionStrategy getReconnectionStrategy()
@Deprecated public final void setReconnectionStrategy(ReconnectionStrategy reconnectionStrategy)
reconnectionStrategy - The reconnection strategy.public final Instant getNextReconnectionAttempt()
Copyright © 2014–2017 XMPP.rocks. All rights reserved.