/** * This is a factory method for this PermGen Threshold configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param threshold the threshold value for the PermGen option * * @return the actual type safe PermGen threshold configuration. */ public static PermGenThresholdOption get( int threshold ) { return new PermGenThresholdOption( threshold ); }
return (T) ((this.sequentialAgenda == SequentialAgenda.SEQUENTIAL) ? SequentialAgendaOption.SEQUENTIAL : SequentialAgendaOption.DYNAMIC); } else if ( PermGenThresholdOption.class.equals( option ) ) { return (T) PermGenThresholdOption.get( permGenThreshold ); } else if ( AlphaThresholdOption.class.equals( option ) ) { return (T) AlphaThresholdOption.get( alphaNodeHashingThreshold );
return PermGenThresholdOption.get(legacyOption.getThreshold());
return org.drools.conf.PermGenThresholdOption.get(kieOption.getThreshold());
setSequentialAgenda( (option == SequentialAgendaOption.SEQUENTIAL) ? SequentialAgenda.SEQUENTIAL : SequentialAgenda.DYNAMIC ); } else if ( option instanceof PermGenThresholdOption ) { setPermGenThreshold(((PermGenThresholdOption) option).getThreshold()); } else if ( option instanceof AlphaThresholdOption ) { setAlphaNodeHashingThreshold(((AlphaThresholdOption) option).getThreshold());
/** * This is a factory method for this PermGen Threshold configuration. * The factory method is a best practice for the case where the * actual object construction is changed in the future. * * @param threshold the threshold value for the PermGen option * * @return the actual type safe PermGen threshold configuration. */ public static PermGenThresholdOption get( int threshold ) { return new PermGenThresholdOption( threshold ); }