public class ReconnectDialogConfiguration extends Object
Also triggers ConnectionStateHandler.configurationUpdated() whenever
part of the configuration changes.
| Constructor and Description |
|---|
ReconnectDialogConfiguration(Registry registry)
Creates a new instance using the given registry.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
bind(ConnectionStateHandler connectionStateHandler)
Binds this ReconnectDialogConfiguration to the given
ConnectionStateHandler so that
ConnectionStateHandler.configurationUpdated() is run whenever a
relevant part of ReconnectDialogConfiguration changes. |
int |
getDialogGracePeriod()
Gets the time in milliseconds to wait after noticing a loss of connection
but before showing the reconnect dialog.
|
String |
getDialogText()
Gets the text to show in the reconnect dialog.
|
String |
getDialogTextGaveUp()
Gets the text to show in the reconnect dialog when no longer trying to
reconnect.
|
int |
getReconnectAttempts()
Gets the number of reconnect attempts that should be performed before
giving up.
|
int |
getReconnectInterval()
Gets the interval in milliseconds to wait between reconnect attempts.
|
boolean |
isDialogModal()
Checks whether the reconnect dialog should be modal, i.e.
|
public ReconnectDialogConfiguration(Registry registry)
registry - the registrypublic static void bind(ConnectionStateHandler connectionStateHandler)
ConnectionStateHandler so that
ConnectionStateHandler.configurationUpdated() is run whenever a
relevant part of ReconnectDialogConfiguration changes.connectionStateHandler - the connection state handler to bind topublic boolean isDialogModal()
public String getDialogText()
public String getDialogTextGaveUp()
public int getReconnectAttempts()
public int getReconnectInterval()
public int getDialogGracePeriod()
Copyright © 2000–2019 Vaadin Ltd. All rights reserved.