diff options
author | Ilia Motornyi <elmot@vaadin.com> | 2017-05-19 14:39:28 +0300 |
---|---|---|
committer | Aleksi Hietanen <aleksi@vaadin.com> | 2017-05-19 14:39:28 +0300 |
commit | f9eae69b148dc1bad9f63abdc4fc36787c90db04 (patch) | |
tree | 0e52b6bbfaa9a5e4415d4b0db1b84dc5db19fcdd /server | |
parent | a71abd42dad3966904c9d47df0b6908dcb747e66 (diff) | |
download | vaadin-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.java | 6 |
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. * |