public class IncomingDistributableSessionDataImpl extends Object implements IncomingDistributableSessionData
DistributableSessionData.| Constructor and Description |
|---|
IncomingDistributableSessionDataImpl(Integer version,
Long timestamp,
DistributableSessionMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
DistributableSessionMetadata |
getMetadata()
Gets the other session metadata besides the version and timestamp.
|
Map<String,Object> |
getSessionAttributes()
Returns the session's attribute map, or throws an IllegalStateException if
IncomingDistributableSessionData.providesSessionAttributes() would
return false. |
long |
getTimestamp()
Gets the timestamp of the most recent session access.
|
int |
getVersion()
Gets the session's version.
|
boolean |
providesSessionAttributes()
Gets whether it is safe to invoke
IncomingDistributableSessionData.getSessionAttributes() on this object. |
void |
setSessionAttributes(Map<String,Object> attributes)
Sets the session attributes.
|
public IncomingDistributableSessionDataImpl(Integer version, Long timestamp, DistributableSessionMetadata metadata)
public boolean providesSessionAttributes()
IncomingDistributableSessionData.getSessionAttributes() on this object.providesSessionAttributes in interface IncomingDistributableSessionDatatrue if IncomingDistributableSessionData.getSessionAttributes() will return a map; false if it will throw an IllegalStateException.org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData#providesSessionAttributes()public Map<String,Object> getSessionAttributes()
IncomingDistributableSessionData.providesSessionAttributes() would
return false.getSessionAttributes in interface IncomingDistributableSessionDatanullorg.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData#getSessionAttributes()public void setSessionAttributes(Map<String,Object> attributes)
attributes - a map of session attributespublic DistributableSessionMetadata getMetadata()
getMetadata in interface IncomingDistributableSessionDataorg.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData#getMetadata()public long getTimestamp()
getTimestamp in interface IncomingDistributableSessionDataorg.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData#getTimestamp()public int getVersion()
getVersion in interface IncomingDistributableSessionDataorg.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData#getVersion()Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.