Package: groovy.transform

## [Java] Annotation Type ActiveMethod

- groovy.transform.ActiveMethod

-     @Retention(RetentionPolicy.SOURCE)
      @Target(ElementType.METHOD)
      public @interface ActiveMethod

  Marks a method within an ActiveObject class for actor-backed execution.

  When `blocking = true` (the default), the caller blocks until the actor processes the method and returns the result. When `blocking = false`, the method returns an Awaitable immediately.

  See Also:
    ActiveObject
  Since:
    6.0.0

- - ### Element Summary

    Optional Element Summary
    Type | Name and Description
    --- | ---
    `boolean` | `blocking` If `true` (default), the caller blocks until the method completes.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Element Detail

    - #### public boolean blocking

      If `true` (default), the caller blocks until the method completes. If `false`, an `Awaitable` is returned.

      Default:
        true