Annotation Type Parallel


  • @Documented
    @Retention(RUNTIME)
    @Target(METHOD)
    public @interface Parallel
    Execute annotated method in multiple threads.

    This annotation should be applied only to methods that return void, in other cases the behavior might be unexpected (because NULL will always be returned).

    Since:
    0.10
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int threads
      Number of threads to use for parallel execution.
    • Element Detail

      • threads

        int threads
        Number of threads to use for parallel execution.
        Returns:
        The number of threads
        Default:
        1