org.jboss.web.tomcat.service.session.distributedcache.spi
Interface OutgoingAttributeGranularitySessionData

All Superinterfaces:
OutgoingDistributableSessionData

public interface OutgoingAttributeGranularitySessionData
extends OutgoingDistributableSessionData

Expands on OutgoingDistributableSessionData to expose information about changes in the session's attribute map.

Author:
Brian Stansberry

Method Summary
 Map<String,Object> getModifiedSessionAttributes()
          Gets those key/value pairs in the session's attribute map that have been modified versus what is already present in the distributed cache, including newly added key/value pairs.
 Set<String> getRemovedSessionAttributes()
          Gets the names of session attributes that have been removed locally and thus need to be removed from the distributed cache.
 
Methods inherited from interface org.jboss.web.tomcat.service.session.distributedcache.spi.OutgoingDistributableSessionData
getMetadata, getRealId, getTimestamp, getVersion
 

Method Detail

getModifiedSessionAttributes

Map<String,Object> getModifiedSessionAttributes()
Gets those key/value pairs in the session's attribute map that have been modified versus what is already present in the distributed cache, including newly added key/value pairs.

Returns:
map containing the modified attributes map or null if there are no modified attributes.

getRemovedSessionAttributes

Set<String> getRemovedSessionAttributes()
Gets the names of session attributes that have been removed locally and thus need to be removed from the distributed cache.

Returns:
a set of attribute keys that need to be removed from the distributed cache, or null if there are no such keys


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.