当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 cluster API Documentation 英文版文档
SerializableHttpSession (JBoss Cluster API) - JBoss 4.0.1 sp1 cluster API Documentation 英文版文档
org.jboss.ha.httpsession.interfaces
Interface SerializableHttpSession
- All Superinterfaces:
- Serializable
- public interface SerializableHttpSession
- extends Serializable
Tag interface to make HttpSession serializable. Used to store the clustered HttpSession
in an entity bean.
Furthermore, it adds an areAttributesModified method used by the entity bean
to determine if the content attributes have been modified.
WARNING: the areAttributesModified method should not compare the creation and last
access time but only the attributes and other specific values. Otherwise
the state will be considered as changed for every request (which will cause
to much cluster traffic.
- Version:
- $Revision: 1.3 $
- Author:
- Sacha Labourey.
- See Also:
org.jboss.ha.httpsession.beanimpl.interfaces.ClusteredHttpSessionBusiness
serialVersionUID
public static final long serialVersionUID
- The serialVersionUID
- Since:
- 1.2
- See Also:
- Constant Field Values
areAttributesModified
public boolean areAttributesModified(SerializableHttpSession previousVersion)
- Method used by the entity bean
to determine if the content attributes have been modified.
WARNING: the areAttributesModified method should not compare the creation and last
access time but only the attributes and other specific values. Otherwise
the state will be considered as changed for every request (which will cause
to much cluster traffic.
- Parameters:
previousVersion
- A previous version of the HttpSession to be compared against.
getContentCreationTime
public long getContentCreationTime()
getContentLastAccessTime
public long getContentLastAccessTime()
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.