Annotation Interface Async


@Retention(RUNTIME) @Target(METHOD) public @interface Async
Marks a command handling method to be executed asynchronously. Applies to methods only.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional parameter to specify a custom executor service provider.
  • Element Details

    • value

      Class<? extends ExecutorServiceProvider> value
      Optional parameter to specify a custom executor service provider. If not specified, the default executor service will be used.
      Returns:
      The class of the custom executor service provider, or DefaultExecutorServiceProvider if not specified.
      Default:
      studio.mevera.imperat.annotations.base.DefaultExecutorServiceProvider.class