com.aspose.barcode.common

Class ProcessorSettings

  • java.lang.Object
    • com.aspose.barcode.common.ProcessorSettings


  • public class ProcessorSettings
    extends java.lang.Object

    Information about using processor cores

    • Constructor Summary

      Constructors 
      Constructor and Description
      ProcessorSettings(boolean useAllCores)
      Initialize an instance of ProcessorSettings class
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int getMaxAdditionalAllowedThreads()
      Specify the maximal number of additional threads to run code in parallel
      boolean getUseAllCores()
      Is needed to use all cores.
      int getUseOnlyThisCoresCount()
      Specify the number of cores to use.
      void setMaxAdditionalAllowedThreads(int value)
      Specify the maximal number of additional threads to run code in parallel
      void setUseAllCores(boolean value)
      Is needed to use all cores.
      void setUseOnlyThisCoresCount(int value)
      Specify the number of cores to use.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProcessorSettings

        public ProcessorSettings(boolean useAllCores)

        Initialize an instance of ProcessorSettings class

        Parameters:
        useAllCores -
    • Method Detail

      • getUseAllCores

        public boolean getUseAllCores()

        Is needed to use all cores. Compact framework can not determine the number of cores. For compact framework need use field UseOnlyThisCoresCount, to specify the number of cores.


         
         [Java]
         BarCodeReader.getProcessorSettings().getUseAllCores();
         
      • setUseAllCores

        public void setUseAllCores(boolean value)

        Is needed to use all cores. Compact framework can not determine the number of cores. For compact framework need use field UseOnlyThisCoresCount, to specify the number of cores.


         
         [Java]
         BarCodeReader.getProcessorSettings().setUseAllCores(false);
         reader.setManualHints(ManualHint.InvertImage);
         
      • getUseOnlyThisCoresCount

        public int getUseOnlyThisCoresCount()

        Specify the number of cores to use. You need to change the property "UseAllCores" to "false".


         
         [Java]
         BarCodeReader.getProcessorSettings().getUseOnlyThisCoresCount();
         

      • setUseOnlyThisCoresCount

        public void setUseOnlyThisCoresCount(int value)

        Specify the number of cores to use. You need to change the property "UseAllCores" to "false".


         
         [Java]
         BarCodeReader.getProcessorSettings().setUseOnlyThisCoresCount(3);
         

      • getMaxAdditionalAllowedThreads

        public int getMaxAdditionalAllowedThreads()

        Specify the maximal number of additional threads to run code in parallel


         
         [Java]
         BarCodeReader.getProcessorSettings().getMaxAdditionalAllowedThreads();
         

      • setMaxAdditionalAllowedThreads

        public void setMaxAdditionalAllowedThreads(int value)

        Specify the maximal number of additional threads to run code in parallel


         
         [Java]
         BarCodeReader.getProcessorSettings().setMaxAdditionalAllowedThreads(24);