Class ReconnectDialogConfigurationMap
java.lang.Object
com.vaadin.flow.internal.nodefeature.NodeFeature
com.vaadin.flow.internal.nodefeature.NodeMap
com.vaadin.flow.internal.nodefeature.ReconnectDialogConfigurationMap
- All Implemented Interfaces:
ReconnectDialogConfiguration,Serializable
public class ReconnectDialogConfigurationMap
extends NodeMap
implements ReconnectDialogConfiguration
Map for storing the reconnect dialog configuration for a UI.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.internal.nodefeature.NodeMap
NodeMap.SignalBinding -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new map for the given node. -
Method Summary
Modifier and TypeMethodDescriptionGets the text to show in the reconnect dialog when trying to re-establish the server connection.Gets the text to show in the reconnect dialog after giving up trying to reconnect (ReconnectDialogConfiguration.getReconnectAttempts()reached).intGets the number of times to try to reconnect to the server before giving up.intGets the interval (in milliseconds) between reconnect attempts.voidsetDialogText(String dialogText) Sets the text to show in the reconnect dialog when trying to re-establish the server connection.voidsetDialogTextGaveUp(String dialogTextGaveUp) Sets the text to show in the reconnect dialog after giving up trying to reconnect (ReconnectDialogConfiguration.getReconnectAttempts()reached).voidsetReconnectAttempts(int reconnectAttempts) Sets the number of times to try to reconnect to the server before giving up.voidsetReconnectInterval(int reconnectInterval) Sets the interval (in milliseconds) between reconnect attempts.Methods inherited from class com.vaadin.flow.internal.nodefeature.NodeMap
clear, collectChanges, contains, forEachChild, generateChangesFromEmpty, get, getOrDefault, getOrDefault, getOrDefault, keySet, mayUpdateFromClient, producePutChange, put, put, remove, updateFromClientMethods inherited from class com.vaadin.flow.internal.nodefeature.NodeFeature
allowsChanges, attachPotentialChild, detatchPotentialChild, getNode, onAttach, onDetach
-
Field Details
-
DIALOG_TEXT_KEY
- See Also:
-
DIALOG_TEXT_DEFAULT
- See Also:
-
DIALOG_TEXT_GAVE_UP_KEY
- See Also:
-
DIALOG_TEXT_GAVE_UP_DEFAULT
- See Also:
-
RECONNECT_ATTEMPTS_KEY
- See Also:
-
RECONNECT_ATTEMPTS_DEFAULT
public static final int RECONNECT_ATTEMPTS_DEFAULT- See Also:
-
RECONNECT_INTERVAL_KEY
- See Also:
-
RECONNECT_INTERVAL_DEFAULT
public static final int RECONNECT_INTERVAL_DEFAULT- See Also:
-
-
Constructor Details
-
ReconnectDialogConfigurationMap
Creates a new map for the given node.- Parameters:
node- the node that the map belongs to
-
-
Method Details
-
getDialogText
Description copied from interface:ReconnectDialogConfigurationGets the text to show in the reconnect dialog when trying to re-establish the server connection.The default is "Connection lost, trying to reconnect..."
- Specified by:
getDialogTextin interfaceReconnectDialogConfiguration- Returns:
- the text to show in the reconnect dialog
-
setDialogText
Description copied from interface:ReconnectDialogConfigurationSets the text to show in the reconnect dialog when trying to re-establish the server connection.- Specified by:
setDialogTextin interfaceReconnectDialogConfiguration- Parameters:
dialogText- the text to show in the reconnect dialog
-
getDialogTextGaveUp
Description copied from interface:ReconnectDialogConfigurationGets the text to show in the reconnect dialog after giving up trying to reconnect (ReconnectDialogConfiguration.getReconnectAttempts()reached).The default is "Connection lost"
- Specified by:
getDialogTextGaveUpin interfaceReconnectDialogConfiguration- Returns:
- the text to show in the reconnect dialog after giving up
-
setDialogTextGaveUp
Description copied from interface:ReconnectDialogConfigurationSets the text to show in the reconnect dialog after giving up trying to reconnect (ReconnectDialogConfiguration.getReconnectAttempts()reached).- Specified by:
setDialogTextGaveUpin interfaceReconnectDialogConfiguration- Parameters:
dialogTextGaveUp- the text to show in the reconnect dialog after giving up
-
getReconnectAttempts
public int getReconnectAttempts()Description copied from interface:ReconnectDialogConfigurationGets the number of times to try to reconnect to the server before giving up.The default is 10000
- Specified by:
getReconnectAttemptsin interfaceReconnectDialogConfiguration- Returns:
- the number of times to try to reconnect
-
setReconnectAttempts
public void setReconnectAttempts(int reconnectAttempts) Description copied from interface:ReconnectDialogConfigurationSets the number of times to try to reconnect to the server before giving up.- Specified by:
setReconnectAttemptsin interfaceReconnectDialogConfiguration- Parameters:
reconnectAttempts- the number of times to try to reconnect
-
getReconnectInterval
public int getReconnectInterval()Description copied from interface:ReconnectDialogConfigurationGets the interval (in milliseconds) between reconnect attempts.The default is 5000
- Specified by:
getReconnectIntervalin interfaceReconnectDialogConfiguration- Returns:
- the interval (in ms) between reconnect attempts
-
setReconnectInterval
public void setReconnectInterval(int reconnectInterval) Description copied from interface:ReconnectDialogConfigurationSets the interval (in milliseconds) between reconnect attempts.- Specified by:
setReconnectIntervalin interfaceReconnectDialogConfiguration- Parameters:
reconnectInterval- the interval (in ms) between reconnect attempts
-