Package org.zkoss.zk.ui.http
Class SimpleSessionCache
java.lang.Object
org.zkoss.zk.ui.http.SimpleSessionCache
- All Implemented Interfaces:
SessionCache
A simple implementation of
SessionCache.- Since:
- 3.0.5
- Author:
- tomyeh
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDestroys the session cacheRetrieves a ZK session from the cache, or null if the ZK session is not stored.voidInitializes the session cache.voidPuts a ZK session to the cache.voidRemoves the ZK session from the cache.
-
Constructor Details
-
SimpleSessionCache
public SimpleSessionCache()
-
-
Method Details
-
init
Description copied from interface:SessionCacheInitializes the session cache. It is called right after being instantiated.- Specified by:
initin interfaceSessionCache
-
destroy
Description copied from interface:SessionCacheDestroys the session cache- Specified by:
destroyin interfaceSessionCache
-
put
Description copied from interface:SessionCachePuts a ZK session to the cache. You can retrieve the native session bySession.getNativeSession().- Specified by:
putin interfaceSessionCache- Parameters:
sess- the ZK session.
-
get
Description copied from interface:SessionCacheRetrieves a ZK session from the cache, or null if the ZK session is not stored.- Specified by:
getin interfaceSessionCache
-
remove
Description copied from interface:SessionCacheRemoves the ZK session from the cache.- Specified by:
removein interfaceSessionCache
-