Package org.jboss.web.tomcat.service.session.distributedcache.spi

Examples of org.jboss.web.tomcat.service.session.distributedcache.spi.DistributableSessionMetadata


      @SuppressWarnings("unchecked")
      AtomicMap<Object, Object> data = (AtomicMap<Object, Object>) event.getValue();
     
      Integer version = AtomicMapEntry.VERSION.get(data);
      Long timestamp = AtomicMapEntry.TIMESTAMP.get(data);
      DistributableSessionMetadata metadata = AtomicMapEntry.METADATA.get(data);
     
      if (timestamp == null)
      {
         log.warn(String.format("No timestamp attribute found in node modification event for session %s", mask(sessionId)));
         return;
View Full Code Here


      Fqn<String> fqn = getSessionFqn(combinedPath_, realId);
     
      Map<Object, Object> map = new HashMap<Object, Object>();
      map.put(VERSION_KEY, Integer.valueOf(sessionData.getVersion()));
     
      DistributableSessionMetadata dsm = sessionData.getMetadata();
      if (dsm != null)
      {  
         map.put(METADATA_KEY, dsm);
      }
     
View Full Code Here

                                       Map<Object, Object> distributedCacheData,
                                       boolean includeAttributes)
   {
      Integer version = (Integer) distributedCacheData.get(VERSION_KEY);
      Long timestamp = (Long) distributedCacheData.get(TIMESTAMP_KEY);
      DistributableSessionMetadata metadata = (DistributableSessionMetadata) distributedCacheData.get(METADATA_KEY);
      Map<String, Object> attrs = includeAttributes ? getSessionAttributes(realId, distributedCacheData) : null;     
      return new IncomingDistributableSessionDataImpl(version, timestamp, metadata, attrs);
   }
View Full Code Here

            // If requested session is no longer in the cache; return null
            if (map == null) return null;
           
            Integer version = SessionMapEntry.VERSION.get(map);
            Long timestamp = SessionMapEntry.TIMESTAMP.get(map);
            DistributableSessionMetadata metadata = SessionMapEntry.METADATA.get(map);
            IncomingDistributableSessionDataImpl result = new IncomingDistributableSessionDataImpl(version, timestamp, metadata);
           
            if (includeAttributes)
            {
               try
View Full Code Here

     
      String sessionId = event.getKey();
     
      Integer version = SessionMapEntry.VERSION.get(map);
      Long timestamp = SessionMapEntry.TIMESTAMP.get(map);
      DistributableSessionMetadata metadata = SessionMapEntry.METADATA.get(map);
     
      if ((version != null) && (timestamp != null) && (metadata != null))
      {
         boolean updated = this.manager.sessionChangedInDistributedCache(sessionId, null, version.intValue(), timestamp.longValue(), metadata);
        
View Full Code Here

TOP

Related Classes of org.jboss.web.tomcat.service.session.distributedcache.spi.DistributableSessionMetadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.