Package com.caucho.distcache

Examples of com.caucho.distcache.ExtCacheEntry


    ByteStreamCache cache = _manager.getCache();

    if (cache == null)
      return _lastUseTime;

    ExtCacheEntry entry = cache.peekExtCacheEntry(_id);
    // server/01ke
   
    if (entry == null)
      return _lastUseTime;
    else
      return entry.getLastAccessTime();
  }
View Full Code Here


      // server/015m
      if (! isNew && _manager.isSaveOnShutdown())
        return true;

      ExtCacheEntry entry = cache.getExtCacheEntry(_id);
      ExtCacheEntry cacheEntry = _cacheEntry;

      if (entry != null) {
        // server/01a1, #4419
        _idleTimeout = entry.getIdleTimeout() * 4 / 5;
        //_isIdleSet = true;
      }
     
      if (entry != null && cacheEntry != null
          && cacheEntry.getValueHashKey() != null
          && cacheEntry.getValueHashKey().equals(entry.getValueHashKey())) {
        if (log.isLoggable(Level.FINE)) {
          log.fine(this + " session load-same valueHash="
                   + (entry != null ? entry.getValueHashKey() : null));
        }
       
View Full Code Here

    boolean isNew = false;

    if (session == null
        && sessionId != null
        && _sessionStore != null) {
      ExtCacheEntry entry = _sessionStore.getExtCacheEntry(sessionId);

      if (entry != null && ! entry.isValueNull()) {
        session = create(sessionId, now, isCreate);

        isNew = true;
      }
    }
View Full Code Here

    boolean killSession = false;

    if (session == null
        && sessionId != null
        && _sessionStore != null) {
      ExtCacheEntry entry = _sessionStore.getExtCacheEntry(sessionId);

      if (entry != null && ! entry.isValueNull()) {
        session = create(sessionId, now, isCreate);

        isNew = true;
      }
    }
View Full Code Here

      // server/015m
      if (! isNew && _manager.isSaveOnShutdown())
        return true;

      ExtCacheEntry entry = cache.getExtCacheEntry(_id);
      ExtCacheEntry cacheEntry = _cacheEntry;

      if (entry != null && cacheEntry != null
          && cacheEntry.getValueHashKey() != null
          && cacheEntry.getValueHashKey().equals(entry.getValueHashKey())) {
        return true;
      }

      TempOutputStream os = new TempOutputStream();
View Full Code Here

      if (_isInvalidating && _manager.getSessionStore() != null) {
        boolean isRemove = false;

        if (logout == Logout.TIMEOUT) {
          // server/016r
          ExtCacheEntry entry
            = _manager.getSessionStore().peekExtCacheEntry(_id);

          long now = Alarm.getCurrentTime();

          if (entry == null || ! entry.isValid()) {
            isRemove = true;
          }
        }
        else
          isRemove = true;
View Full Code Here

TOP

Related Classes of com.caucho.distcache.ExtCacheEntry

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.