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
static final long serialVersionUID
- The serialVersionUID
- Since:
- 1.2
- See Also:
- Constant Field Values
areAttributesModified
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
long getContentCreationTime()
getContentLastAccessTime
long getContentLastAccessTime()
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.