Package org.infinispan.loader.decorators

Examples of org.infinispan.loader.decorators.AsyncStoreConfig


      }
      return ssc;
   }

   public AsyncStoreConfig parseAsyncStoreConfig(Element element) {
      AsyncStoreConfig asc = new AsyncStoreConfig();
      if (element == null) {
         asc.setEnabled(false);
      } else {
         boolean async = getBoolean(getAttributeValue(element, "enabled"));
         asc.setEnabled(async);

         if (async) {
            String tmp = getAttributeValue(element, "batchSize");
            if (existsAttribute(tmp)) asc.setBatchSize(getInt(tmp));

            tmp = getAttributeValue(element, "pollWait");
            if (existsAttribute(tmp)) asc.setPollWait(getLong(tmp));

            tmp = getAttributeValue(element, "queueSize");
            if (existsAttribute(tmp)) asc.setQueueSize(getInt(tmp));

            tmp = getAttributeValue(element, "threadPoolSize");
            if (existsAttribute(tmp)) asc.setThreadPoolSize(getInt(tmp));
         }
      }
      return asc;
   }
View Full Code Here

TOP

Related Classes of org.infinispan.loader.decorators.AsyncStoreConfig

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.