Package org.drools.conf

Examples of org.drools.conf.MultithreadEvaluationOption


    {
      kbaseConfig.setOption(EventProcessingOption.CLOUD);
    }
    Boolean multithreadEvaluation = ruleInfo.getMultithreadEvaluation();
    if (multithreadEvaluation != null) {
      MultithreadEvaluationOption meo = multithreadEvaluation.booleanValue() ? MultithreadEvaluationOption.YES : MultithreadEvaluationOption.NO;
      kbaseConfig.setOption(meo);
      // only pertinent if multithreadEvaluation == true
      Integer maxThreads = ruleInfo.getMaxThreads();
      if (maxThreads != null) {
        kbaseConfig.setOption(MaxThreadsOption.get(maxThreads.intValue()));
View Full Code Here


        {
          properties.setProperty(EventProcessingOption.PROPERTY_NAME, EventProcessingOption.CLOUD.getMode());
        }
        Boolean multithreadEvaluation = ruleInfo.getMultithreadEvaluation();
        if (multithreadEvaluation != null) {
          MultithreadEvaluationOption meo = multithreadEvaluation.booleanValue() ? MultithreadEvaluationOption.YES : MultithreadEvaluationOption.NO;
          properties.setProperty(MultithreadEvaluationOption.PROPERTY_NAME, meo.name());
          // only pertinent if multithreadEvaluation == true
          Integer maxThreads = ruleInfo.getMaxThreads();
          if (maxThreads != null) {
            properties.setProperty(MaxThreadsOption.PROPERTY_NAME, maxThreads.toString());
          }
View Full Code Here

TOP

Related Classes of org.drools.conf.MultithreadEvaluationOption

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.