public class ReconnectionManager
extends java.lang.Object
The reconnection mechanism will try to reconnect periodically:
| Modifier and Type | Method and Description |
|---|---|
void |
disableAutomaticReconnection()
Disable the automatic reconnection mechanism.
|
void |
enableAutomaticReconnection()
Enable the automatic reconnection mechanism.
|
static boolean |
getEnabledPerDefault()
Get the current default reconnection mechanism setting for new XMPP connections.
|
static ReconnectionManager |
getInstanceFor(AbstractXMPPConnection connection)
Get a instance of ReconnectionManager for the given connection.
|
boolean |
isAutomaticReconnectEnabled()
Returns if the automatic reconnection mechanism is enabled.
|
static void |
setEnabledPerDefault(boolean enabled)
Set if the automatic reconnection mechanism will be enabled per default for new XMPP connections.
|
public static ReconnectionManager getInstanceFor(AbstractXMPPConnection connection)
connection - public static void setEnabledPerDefault(boolean enabled)
enabled - public static boolean getEnabledPerDefault()
public void enableAutomaticReconnection()
public void disableAutomaticReconnection()
public boolean isAutomaticReconnectEnabled()
disableAutomaticReconnection() and enable the mechanism with enableAutomaticReconnection().