summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorIlia Motornyi <elmot@vaadin.com>2017-05-19 14:39:28 +0300
committerAleksi Hietanen <aleksi@vaadin.com>2017-05-19 14:39:28 +0300
commitf9eae69b148dc1bad9f63abdc4fc36787c90db04 (patch)
tree0e52b6bbfaa9a5e4415d4b0db1b84dc5db19fcdd /server
parenta71abd42dad3966904c9d47df0b6908dcb747e66 (diff)
downloadvaadin-framework-f9eae69b148dc1bad9f63abdc4fc36787c90db04.tar.gz
vaadin-framework-f9eae69b148dc1bad9f63abdc4fc36787c90db04.zip
Make VaadinService#isUIActive() public (#9285)
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/server/VaadinService.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/main/java/com/vaadin/server/VaadinService.java b/server/src/main/java/com/vaadin/server/VaadinService.java
index e9973e132f..e05b935929 100644
--- a/server/src/main/java/com/vaadin/server/VaadinService.java
+++ b/server/src/main/java/com/vaadin/server/VaadinService.java
@@ -1326,14 +1326,14 @@ public abstract class VaadinService implements Serializable {
* returns false and {@link #getHeartbeatTimeout() getHeartbeatTimeout} is
* negative or has not yet expired.
*
- * @since 7.0.0
+ * @since 8.1
*
* @param ui
* The UI whose status to check
*
* @return true if the UI is active, false if it could be removed.
*/
- private boolean isUIActive(UI ui) {
+ public boolean isUIActive(UI ui) {
if (ui.isClosing()) {
return false;
} else {
@@ -1347,7 +1347,7 @@ public abstract class VaadinService implements Serializable {
/**
* Returns whether the given session is active or whether it can be closed.
* <p>
- * A session is active if and only if its {@link #isClosing} returns false
+ * A session is active if and only if its {@link VaadinSession#getState()} returns {@link State#OPEN}
* and {@link #getUidlRequestTimeout(VaadinSession) getUidlRequestTimeout}
* is negative or has not yet expired.
*