public class ReconnectDialogConfigurationMap extends NodeMap implements ReconnectDialogConfiguration
For internal use only. May be renamed or removed in a future release.
| Modifier and Type | Field and Description |
|---|---|
static String |
DIALOG_TEXT_DEFAULT |
static String |
DIALOG_TEXT_GAVE_UP_DEFAULT |
static String |
DIALOG_TEXT_GAVE_UP_KEY |
static String |
DIALOG_TEXT_KEY |
static int |
RECONNECT_ATTEMPTS_DEFAULT |
static String |
RECONNECT_ATTEMPTS_KEY |
static int |
RECONNECT_INTERVAL_DEFAULT |
static String |
RECONNECT_INTERVAL_KEY |
| Constructor and Description |
|---|
ReconnectDialogConfigurationMap(StateNode node)
Creates a new map for the given node.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDialogText()
Gets the text to show in the reconnect dialog when trying to re-establish
the server connection.
|
String |
getDialogTextGaveUp()
Gets the text to show in the reconnect dialog after giving up trying to
reconnect (
ReconnectDialogConfiguration.getReconnectAttempts() reached). |
int |
getReconnectAttempts()
Gets the number of times to try to reconnect to the server before giving
up.
|
int |
getReconnectInterval()
Gets the interval (in milliseconds) between reconnect attempts.
|
void |
setDialogText(String dialogText)
Sets the text to show in the reconnect dialog when trying to re-establish
the server connection.
|
void |
setDialogTextGaveUp(String dialogTextGaveUp)
Sets the text to show in the reconnect dialog after giving up trying to
reconnect (
ReconnectDialogConfiguration.getReconnectAttempts() reached). |
void |
setReconnectAttempts(int reconnectAttempts)
Sets the number of times to try to reconnect to the server before giving
up.
|
void |
setReconnectInterval(int reconnectInterval)
Sets the interval (in milliseconds) between reconnect attempts.
|
clear, collectChanges, contains, forEachChild, generateChangesFromEmpty, get, getOrDefault, getOrDefault, getOrDefault, keySet, mayUpdateFromClient, producePutChange, put, put, remove, updateFromClientallowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetachpublic static final String DIALOG_TEXT_KEY
public static final String DIALOG_TEXT_DEFAULT
public static final String DIALOG_TEXT_GAVE_UP_KEY
public static final String DIALOG_TEXT_GAVE_UP_DEFAULT
public static final String RECONNECT_ATTEMPTS_KEY
public static final int RECONNECT_ATTEMPTS_DEFAULT
public static final String RECONNECT_INTERVAL_KEY
public static final int RECONNECT_INTERVAL_DEFAULT
public ReconnectDialogConfigurationMap(StateNode node)
node - the node that the map belongs topublic String getDialogText()
ReconnectDialogConfigurationThe default is
getDialogText in interface ReconnectDialogConfigurationpublic void setDialogText(String dialogText)
ReconnectDialogConfigurationsetDialogText in interface ReconnectDialogConfigurationdialogText - the text to show in the reconnect dialogpublic String getDialogTextGaveUp()
ReconnectDialogConfigurationReconnectDialogConfiguration.getReconnectAttempts() reached).
The default is
getDialogTextGaveUp in interface ReconnectDialogConfigurationpublic void setDialogTextGaveUp(String dialogTextGaveUp)
ReconnectDialogConfigurationReconnectDialogConfiguration.getReconnectAttempts() reached).setDialogTextGaveUp in interface ReconnectDialogConfigurationdialogTextGaveUp - the text to show in the reconnect dialog after giving uppublic int getReconnectAttempts()
ReconnectDialogConfigurationThe default is
getReconnectAttempts in interface ReconnectDialogConfigurationpublic void setReconnectAttempts(int reconnectAttempts)
ReconnectDialogConfigurationsetReconnectAttempts in interface ReconnectDialogConfigurationreconnectAttempts - the number of times to try to reconnectpublic int getReconnectInterval()
ReconnectDialogConfigurationThe default is
getReconnectInterval in interface ReconnectDialogConfigurationpublic void setReconnectInterval(int reconnectInterval)
ReconnectDialogConfigurationsetReconnectInterval in interface ReconnectDialogConfigurationreconnectInterval - the interval (in ms) between reconnect attemptsCopyright © 2021. All rights reserved.