An {@code Actor} dispatches method calls to a target object in a thread-safe manner. Methods are called either bycalling {@link org.gradle.messaging.dispatch.Dispatch#dispatch(Object)} on the actor, or using the proxy objectreturned by {@link #getProxy(Class)}. Methods are delivered to the target object in the order they are called on the actor, but are delivered to the target object by a single thread. In this way, the target object does not need to perform any synchronisation.
An actor delivers method calls to the target object asynchronously, so that method dispatch does not block waiting for the method call to be delivered.
All implementations of this interface must be thread-safe.
|
|
|
|