public class GlobalDesktopCacheProvider extends java.lang.Object implements DesktopCacheProvider, java.io.Serializable
DesktopCacheProvider
that stores all
desktops from the same Web application into one desktop cache.
In other words, it ignores the session, and it depends only on
WebApp
.
SessionDesktopCacheProvider
,
Serialized FormConstructor and Description |
---|
GlobalDesktopCacheProvider() |
Modifier and Type | Method and Description |
---|---|
DesktopCache |
getDesktopCache(Session sess)
Returns a desktop cache of the specified session.
|
void |
sessionDestroyed(Session sess)
Called when a session is destroyed.
|
void |
sessionDidActivate(Session sess)
|
void |
sessionWillPassivate(Session sess)
|
void |
start(WebApp wapp)
Starts the provider.
|
void |
stop(WebApp wapp)
Stops the provider.
|
public DesktopCache getDesktopCache(Session sess)
DesktopCacheProvider
The implementation might ignore session and use a global cache instead. Moreover, it might implement a cache supporting clustering.
getDesktopCache
in interface DesktopCacheProvider
public void sessionDestroyed(Session sess)
DesktopCacheProvider
Application shall never access this method.
sessionDestroyed
in interface DesktopCacheProvider
public void sessionWillPassivate(Session sess)
getDesktopCache(org.zkoss.zk.ui.Session)
's DesktopCache.sessionWillPassivate(org.zkoss.zk.ui.Session)
.sessionWillPassivate
in interface DesktopCacheProvider
public void sessionDidActivate(Session sess)
getDesktopCache(org.zkoss.zk.ui.Session)
's DesktopCache.sessionDidActivate(org.zkoss.zk.ui.Session)
.sessionDidActivate
in interface DesktopCacheProvider
public void start(WebApp wapp)
DesktopCacheProvider
start
in interface DesktopCacheProvider
public void stop(WebApp wapp)
DesktopCacheProvider
stop
in interface DesktopCacheProvider
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.