RemoteMethodCall extends MethodCall (2.2.7) with the ability to invoke methods in remote objects. Its constructors additionally accept a transport (Transportable) (e.g. a channel) over which the method call will be sent to the remote object.
As a remote method call to a process group may return more than a single response, two methods are added which use SyncCall (2.2.2) to send a request to the remote object and return the first or N responses: SendGetFirst invokes the remote method in all group members and returns the first response received as an object (or exception), or null, if a timeout occurred. SendGetN invokes the remote method in all group members and returns N responses, or null, if a timeout occurred (and no response has been received). If N is 0, no responses are expected, essentially making the remote method call one-way.
RemoteMethodCall is mainly used on the client side. Its equivalent on the server side is MethodInvoker (2.2.9).