Annotation Interface ActiveMethod


@Retention(SOURCE) @Target(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.

Since:
6.0.0
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If true (default), the caller blocks until the method completes.
  • Element Details

    • blocking

      boolean blocking
      If true (default), the caller blocks until the method completes. If false, an Awaitable is returned.
      Default:
      true