public class IncomingDistributableSessionDataImpl extends Object implements IncomingDistributableSessionData
IncomingDistributableSessionData.| 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.IncomingDistributableSessionData.providesSessionAttributes()public Map<String,Object> getSessionAttributes()
IncomingDistributableSessionData.providesSessionAttributes() would
return false.getSessionAttributes in interface IncomingDistributableSessionDatanullIncomingDistributableSessionData.getSessionAttributes()public void setSessionAttributes(Map<String,Object> attributes)
attributes - a map of session attributespublic DistributableSessionMetadata getMetadata()
getMetadata in interface IncomingDistributableSessionDataIncomingDistributableSessionData.getMetadata()public long getTimestamp()
getTimestamp in interface IncomingDistributableSessionDataIncomingDistributableSessionData.getTimestamp()public int getVersion()
getVersion in interface IncomingDistributableSessionDataIncomingDistributableSessionData.getVersion()Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.