- All Known Implementing Classes:
- InvocationEvent
public interface ActiveEvent
An interface for events which can dispatch themselves in another thread.
This has two uses: first, if your code is in a critical section, calling a
synchronized method might deadlock. But by using an ActiveEvent to call
the second section, it will not obtain the lock until you have left the
critical section, avoiding deadlock. The second use is for calling
untrusted code. For example, system code should use an ActiveEvent to
invoke user code securely.
- Since:
- 1.2