- All Known Subinterfaces:
- Future<T>
- All Known Implementing Classes:
- CallbackWrapper, Promise
public interface Callback<T>
Typically used to receive results from outside the actor.
The underlying mechanics scans method arguments and schedules calls on the call back into the calling actors thread.
Note that the callback invocation is added as a message to the end of the calling actor.
e.g. actor.method( arg, new Callbacl() { public void receiveResult(T result, Object error ) { ..runs in caller thread.. } }