Examples of lastUsed()


Examples of org.infinispan.metadata.InternalMetadata.lastUsed()

      if (metadata != null) {
         Metadata actual = metadata instanceof InternalMetadataImpl ? ((InternalMetadataImpl) metadata).actual() :
               metadata;
         //noinspection unchecked
         return factory.create(loaded.getKey(), loaded.getValue(), actual, metadata.created(), metadata.lifespan(),
                               metadata.lastUsed(), metadata.maxIdle());
      } else {
         //metadata is null!
         //noinspection unchecked
         return factory.create(loaded.getKey(), loaded.getValue(), (Metadata) null);
      }
View Full Code Here

Examples of org.infinispan.metadata.InternalMetadata.lastUsed()

            InternalMetadata metadata = loaded.getMetadata();
            if (metadata != null) {
               Metadata actual = metadata instanceof InternalMetadataImpl ? ((InternalMetadataImpl) metadata).actual() :
                     metadata;
               newEntry = factory.create(loaded.getKey(), loaded.getValue(), actual, metadata.created(), metadata.lifespan(),
                                       metadata.lastUsed(), metadata.maxIdle());
            } else {
               //metadata is null!
               newEntry = factory.create(loaded.getKey(), loaded.getValue(), (Metadata) null);
            }
            CacheEntry wrappedEntry = wrapInternalCacheEntry(ctx, key, cmd, newEntry, isDelta);
View Full Code Here

Examples of org.infinispan.metadata.InternalMetadata.lastUsed()

      if (metadata != null) {
         Metadata actual = metadata instanceof InternalMetadataImpl ? ((InternalMetadataImpl) metadata).actual() :
               metadata;
         //noinspection unchecked
         return factory.create(loaded.getKey(), loaded.getValue(), actual, metadata.created(), metadata.lifespan(),
                               metadata.lastUsed(), metadata.maxIdle());
      } else {
         //metadata is null!
         //noinspection unchecked
         return factory.create(loaded.getKey(), loaded.getValue(), (Metadata) null);
      }
View Full Code Here

Examples of org.infinispan.metadata.InternalMetadata.lastUsed()

            InternalMetadata metadata = loaded.getMetadata();
            if (metadata != null) {
               Metadata actual = metadata instanceof InternalMetadataImpl ? ((InternalMetadataImpl) metadata).actual() :
                     metadata;
               newEntry = factory.create(loaded.getKey(), loaded.getValue(), actual, metadata.created(), metadata.lifespan(),
                                       metadata.lastUsed(), metadata.maxIdle());
            } else {
               //metadata is null!
               newEntry = factory.create(loaded.getKey(), loaded.getValue(), (Metadata) null);
            }
            CacheEntry wrappedEntry = wrapInternalCacheEntry(ctx, key, cmd, newEntry, isDelta);
View Full Code Here

Examples of org.jboss.ejb3.cache.legacy.StatefulBeanContext.lastUsed()

                  Iterator<Entry<Object, StatefulBeanContext>> it = cacheMap.entrySet().iterator();
                  while (it.hasNext())
                  {
                     Entry<Object, StatefulBeanContext> entry = it.next();
                     StatefulBeanContext centry = entry.getValue();
                     if (now - centry.lastUsed() >= removalTimeout)
                     {
                        synchronized (centry)
                        {                                                                   
                           it.remove();
                        }
View Full Code Here

Examples of org.jboss.ejb3.cache.legacy.StatefulBeanContext.lastUsed()

               List<StatefulBeanContext> beans = pm.getPassivatedBeans()
               Iterator<StatefulBeanContext> it = beans.iterator();
               while (it.hasNext())
               {      
                  StatefulBeanContext centry = it.next();
                  if (now - centry.lastUsed() >= removalTimeout)
                  {
                     get(centry.getId(), false);
                     remove(centry.getId());
                  }
               }
View Full Code Here

Examples of org.jboss.ejb3.cache.legacy.StatefulBeanContext.lastUsed()

                  long now = System.currentTimeMillis();
                  while (it.hasNext())
                  {
                     Entry<Object, StatefulBeanContext> entry = it.next();
                     StatefulBeanContext centry = entry.getValue();
                     if (now - centry.lastUsed() >= sessionTimeout * 1000)
                     {
                        synchronized (centry)
                        {                    
                           if (centry.getCanPassivate())
                           {
View Full Code Here

Examples of org.jboss.ejb3.cache.legacy.StatefulBeanContext.lastUsed()

                        }
                     }
                     else if (trace)
                     {
                        log.trace("Not passivating; id=" + centry.getId() +
                              " only inactive " + Math.max(0, now - centry.lastUsed()) + " ms");
                     }
                  }                 
               }
              
               prePassivationCompleted();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.