@Documented
@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.TYPE)
public @interface ActiveObject
Marks a class as an active object whose ActiveMethod-annotated methods are automatically routed through an internal actor for thread-safe, serialized execution.
All @ActiveMethod calls on the same instance are processed
one at a time — no locks needed.
{@literal @}ActiveObject
class Account {
private double balance = 0
{@literal @}ActiveMethod
void deposit(double amount) { balance += amount }
{@literal @}ActiveMethod(blocking = false)
Awaitable<Double> getBalance() { balance }
}
The name of the generated actor field.