Examples of expire()


Examples of cc.concurrent.mango.Cache.expire()

        if (cacheAnno != null) { // dao类使用cache
            CacheIgnored cacheIgnoredAnno = method.getAnnotation(CacheIgnored.class);
            if (cacheIgnoredAnno == null) { // method不禁用cache
                cacheDescriptor.setUseCache(true);
                cacheDescriptor.setPrefix(cacheAnno.prefix());
                cacheDescriptor.setExpire(Reflection.instantiate(cacheAnno.expire()));
                cacheDescriptor.setNum(cacheAnno.num());
                Annotation[][] pass = method.getParameterAnnotations();
                int num = 0;
                for (int i = 0; i < pass.length; i++) {
                    Annotation[] pas = pass[i];
View Full Code Here

Examples of com.google.collide.client.status.StatusMessage.expire()

  private StatusMessage createReceivedAckMessage() {
    StatusMessage msg =
        new StatusMessage(statusManager, MessageType.CONFIRMATION,
            "Saved successfully.");
    msg.setDismissable(true);
    msg.expire(1500);

    return msg;
  }

  private String getUnackedDocOpsString() {
View Full Code Here

Examples of com.intellij.notification.Notification.expire()

                    // use dont want to show notification again
                    Settings.getInstance(project).dismissEnableNotification = true;
                }

                notification.expire();
            }

        });

        Notifications.Bus.notify(notification, project);
View Full Code Here

Examples of com.skyline.common.cache.annotation.Cache.expire()

      Class<? extends Annotation> annotationType = annotation.annotationType();
      if (annotationType.equals(Cache.class)) {
        Cache cache = (Cache) annotation;
        isCachable = true;
        keyPattern = cache.keyPattern();
        expire = cache.expire();
        isPagination = cache.pagination();
        categoryType = cache.type();
        isGenericCache = isCategoryTypeGeneric(categoryType);
      }
      if (annotationType.equals(CacheDelete.class)) { // 如categoryType等可能重复的数据以删除为准
View Full Code Here

Examples of com.skyline.common.cache.annotation.CacheDelete.expire()

      }
      if (annotationType.equals(CacheDelete.class)) { // 如categoryType等可能重复的数据以删除为准
        isCacheDelete = true;
        CacheDelete cacheDelete = (CacheDelete) annotation;
        categoryType = cacheDelete.type();
        expire = cacheDelete.expire();
        isGenericCache = isCategoryTypeGeneric(categoryType);
      }
    }
  }
View Full Code Here

Examples of loxia.support.cache.annotation.Cacheable.expire()

        value = null;
      logger.debug("Cached value: {} will be returned as type {} with key [{}]", new Object[] { value, m.getReturnType(), cacheKey });
      return value;
    }else{
      value = pjp.proceed(pjp.getArgs());
      cacheValue(methodName, c.cacheKey(), cacheKey, value == null ? NULL : value, c.expire(), params);
      return value;
    }
  }

  private Method getMethod(ProceedingJoinPoint pjp,Class<? extends Annotation> clazz){
View Full Code Here

Examples of net.sf.jportlet.service.cache.Cacheable.expire()

                    if ( debug )
                    {
                        _log.debug( "...Portlet dirty. expiring the portlet body" );
                    }

                    cacheable.expire(  );
                    body = null;
                }
            }
        }
        else
View Full Code Here

Examples of net.sf.jportlet.service.cache.Cacheable.expire()

                    if ( debug )
                    {
                        __log.debug( "...portlet dirty. expiring the portlet content" );
                    }

                    cacheable.expire(  );
                }
            }
        }

        return Interceptor.CONTINUE;
View Full Code Here

Examples of org.apache.catalina.Session.expire()

                    Context context = getContainerWrapper().getTomcatContainer().findContext(appName);
                    if (context != null) {
                        Manager manager = context.getManager();
                        Session session = manager.findSession(sessionId);
                        if (session != null && session.isValid()) {
                            session.expire();
                        }
                    } else {
                        return new ModelAndView("errors/paramerror");
                    }
                } else {
View Full Code Here

Examples of org.apache.catalina.Session.expire()

    protected ModelAndView handleContext(String contextName, Context context,
                                         HttpServletRequest request, HttpServletResponse response) throws Exception {
        String sessionID= ServletRequestUtils.getStringParameter(request, "sid");
        Session session = context.getManager().findSession(sessionID);
        if (session != null) {
            session.expire();
        }
        return new ModelAndView(new InternalResourceView(getViewName()));
    }
}
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.