/** * This is a factory method for this Max Threads configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param maxThreads the maximum number of threads for partition evaluation * * @return the actual type safe max threads configuration. */ public static MaxThreadsOption get( int threshold ) { return new MaxThreadsOption( threshold ); }
return (T) getEventProcessingMode(); } else if ( MaxThreadsOption.class.equals( option ) ) { return (T) MaxThreadsOption.get( getMaxThreads() ); } else if ( MultithreadEvaluationOption.class.equals( option ) ) { return (T) (this.multithread ? MultithreadEvaluationOption.YES : MultithreadEvaluationOption.NO);
return MaxThreadsOption.get(legacyOption.getMaxThreads());
Integer maxThreads = model.getMaxThreads(); if (maxThreads != null) { kbaseConfig.setOption(MaxThreadsOption.get(maxThreads.intValue()));
setEventProcessingMode((EventProcessingOption) option); } else if ( option instanceof MaxThreadsOption ) { setMaxThreads(((MaxThreadsOption) option).getMaxThreads()); } else if ( option instanceof MultithreadEvaluationOption ) { setMultithreadEvaluation(((MultithreadEvaluationOption) option).isMultithreadEvaluation());
/** * This is a factory method for this Max Threads configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param maxThreads the maximum number of threads for partition evaluation * * @return the actual type safe max threads configuration. */ public static MaxThreadsOption get( int threshold ) { return new MaxThreadsOption( threshold ); }
return org.drools.conf.MaxThreadsOption.get(kieOption.getMaxThreads());
/** * This is a factory method for this Max Threads configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param maxThreads the maximum number of threads for partition evaluation * * @return the actual type safe max threads configuration. */ public static MaxThreadsOption get( int threshold ) { return new MaxThreadsOption( threshold ); }