Examples of CacheHandler


Examples of com.founder.fix.fixflow.core.cache.CacheHandler

  @SuppressWarnings({ "unchecked", "rawtypes" })
  public List<IdentityLink> getIdentityLinkQueryToList() {

    if (this.taskIdentityLinks==null||this.taskIdentityLinks.size() == 0) {
      this.taskIdentityLinks=new ArrayList<IdentityLinkEntity>();
      CacheHandler cacheHandler = Context.getProcessEngineConfiguration().getCacheHandler();

      Object valueObject = cacheHandler.getCacheData("IdentityLink_" + this.id);
      if (valueObject != null) {
        this.taskIdentityLinks = (List<IdentityLinkEntity>) valueObject;
        return (List) this.taskIdentityLinks;
      } else {
        List valueObjectTemp = (List) Context.getCommandContext().getIdentityLinkManager().findIdentityLinksByTaskId(this.id);
        if (valueObjectTemp.size() > 0) {
          cacheHandler.putCacheData("IdentityLink_" + this.id, valueObjectTemp);
          this.taskIdentityLinks = (List<IdentityLinkEntity>) valueObjectTemp;
          return (List) this.taskIdentityLinks;
        } else {
          return (List) this.taskIdentityLinks;
        }
View Full Code Here

Examples of io.undertow.server.handlers.cache.CacheHandler

                    exchange.getResponseHeaders().put(Headers.CONTENT_LENGTH, data.length() + "");
                    exchange.getResponseSender().send(data);
                }
            }
        };
        final CacheHandler cacheHandler = new CacheHandler(new DirectBufferCache(100, 10, 1000), messageHandler);
        DefaultServer.setRootHandler(cacheHandler);
    }
View Full Code Here

Examples of io.undertow.server.handlers.cache.CacheHandler

        try {
            File rootPath = new File(getClass().getResource("page.html").toURI()).getParentFile();
            final ResourceHandler handler = new ResourceHandler()
                    .setResourceManager(new FileResourceManager(rootPath, 10485760));

            final CacheHandler cacheHandler = new CacheHandler(new DirectBufferCache(1024, 10, 10480), handler);
            final PathHandler path = new PathHandler();
            path.addPrefixPath("/path", cacheHandler);
            final CanonicalPathHandler root = new CanonicalPathHandler();
            root.setNext(path);
            DefaultServer.setRootHandler(root);
View Full Code Here

Examples of io.undertow.server.handlers.cache.CacheHandler

        root = new FormEncodedDataHandler(root);
        root = new SimpleErrorPageHandler(root);
        //TODO: multipart

        if (cacheSize > 0) {
            root = new CacheHandler(new DirectBufferCache(1024, 1024 * 1024, cacheSize * 1024 * 1024), root);
        }

        return root;
    }
View Full Code Here

Examples of io.undertow.server.handlers.cache.CacheHandler

        try {
            File rootPath = new File(getClass().getResource("page.html").toURI()).getParentFile();
            final ResourceHandler handler = new ResourceHandler()
                    .setResourceManager(new FileResourceManager(rootPath, 10485760));

            final CacheHandler cacheHandler = new CacheHandler(new DirectBufferCache(1024, 10, 10480), handler);
            final PathHandler path = new PathHandler();
            path.addPrefixPath("/path", cacheHandler);
            final CanonicalPathHandler root = new CanonicalPathHandler();
            root.setNext(path);
            DefaultServer.setRootHandler(root);
View Full Code Here

Examples of io.undertow.server.handlers.cache.CacheHandler

                    exchange.getResponseHeaders().put(Headers.CONTENT_LENGTH, data.length() + "");
                    exchange.getResponseSender().send(data);
                }
            }
        };
        final CacheHandler cacheHandler = new CacheHandler(new DirectBufferCache(100, 10, 1000), messageHandler);
        DefaultServer.setRootHandler(cacheHandler);
    }
View Full Code Here

Examples of org.exoplatform.services.organization.CacheHandler

   {

      LDAPAttributeMapping ldapAttrMapping =
         (LDAPAttributeMapping)params.getObjectParam("ldap.attribute.mapping").getObject();

      CacheHandler cacheHandler = new CacheHandler(cservice);

      if (ldapService.getServerType() == LDAPService.ACTIVE_DIRECTORY_SERVER)
      {
         userDAO_ = new ADUserDAOImpl(ldapAttrMapping, ldapService, cacheHandler, this);
         ADSearchBySID adSearch = new ADSearchBySID(ldapAttrMapping);
View Full Code Here

Examples of org.exoplatform.services.organization.CacheHandler

   {

      LDAPAttributeMapping ldapAttrMapping =
         (LDAPAttributeMapping)params.getObjectParam("ldap.attribute.mapping").getObject();

      CacheHandler cacheHandler = new CacheHandler(cservice);

      if (ldapService.getServerType() == LDAPService.ACTIVE_DIRECTORY_SERVER)
      {
         userDAO_ = new ADUserDAOImpl(ldapAttrMapping, ldapService, cacheHandler);
         //      ADSearchBySID adSearch = new ADSearchBySID(ldapAttrMapping, ldapService);
View Full Code Here

Examples of org.exoplatform.services.organization.CacheHandler

   {

      LDAPAttributeMapping ldapAttrMapping =
         (LDAPAttributeMapping)params.getObjectParam("ldap.attribute.mapping").getObject();

      CacheHandler cacheHandler = new CacheHandler(cservice);

      if (ldapService.getServerType() == LDAPService.ACTIVE_DIRECTORY_SERVER)
      {
         userDAO_ = new ADUserDAOImpl(ldapAttrMapping, ldapService, cacheHandler);
         //      ADSearchBySID adSearch = new ADSearchBySID(ldapAttrMapping, ldapService);
View Full Code Here

Examples of org.xlightweb.CacheHandler

   
    sessionManager = new SessionManager();
   
   
    retryHandler = new RetryHandler(HttpClient.this);
    cacheHandler = new CacheHandler(DEFAULT_CACHE_SIZE);
    cookiesHandler = new CookieHandler();
    redirectHandler = new RedirectHandler(this);
    proxyHandler = new ProxyHandler(pool);
   
   
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.