public abstract class TimedRemoteCaller extends Object
This is a helper class for making an async one way call and
its async one way response response in a sync fashion within
a timeout. The key idea is to call the remote method with a
sequence number and a callback and then starting to wait for
the response. The remote method calls back with the result and
the sequence number. If the response comes within the timeout
and its sequence number is the one sent in the method invocation,
then the call succeeded. If the response does not come within
the timeout then the call failed. Older result received when
waiting for the result are ignored.
Typical usage is:
public class MyMethodCaller extends TimeoutRemoteCallHelper