Enum ImageProcessor.Mode

java.lang.Object
java.lang.Enum<ImageProcessor.Mode>
org.apache.sis.image.ImageProcessor.Mode
All Implemented Interfaces:
Serializable, Comparable<ImageProcessor.Mode>, java.lang.constant.Constable
Enclosing class:
ImageProcessor

public static enum ImageProcessor.Mode extends Enum<ImageProcessor.Mode>
Execution modes specifying whether operations can be executed in parallel. If SEQUENTIAL, operations are executed sequentially in the caller thread. If PARALLEL, some operations may be parallelized using an arbitrary number of threads.
See Also:
  • Enum Constant Details

    • PARALLEL

      public static final ImageProcessor.Mode PARALLEL
      Operations executed in multi-threaded mode if possible. This mode can be used if the RenderedImage instances are thread-safe and provide a concurrent (or very fast) implementation of RenderedImage.getTile(int, int).
    • SEQUENTIAL

      public static final ImageProcessor.Mode SEQUENTIAL
      Operations executed in the caller thread, without parallelization. Sequential operations may be useful for processing RenderedImage implementations that may not be thread-safe.
    • DEFAULT

      public static final ImageProcessor.Mode DEFAULT
      Operations are executed in multi-threaded mode if the RenderedImage instance is an implementation known to be thread-safe. All operations on image implementations unknown to Apache SIS are executed in sequential mode.
  • Constructor Details

    • Mode

      private Mode()
  • Method Details

    • values

      public static ImageProcessor.Mode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ImageProcessor.Mode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null