Package com.sun.rpc
Class RpcHandler
- java.lang.Object
-
- com.sun.rpc.RpcHandler
-
- Direct Known Subclasses:
NfsHandler
public class RpcHandler extends java.lang.Object
This handler is implemented by the RPC application if it wishes to be notifed of retransmissions. A good example is an NFS client that displays "NFS Server not responding" and "NFS server OK"
-
-
Constructor Summary
Constructors Constructor Description RpcHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ok(java.lang.String server)
Called when the server responds after a timeoutboolean
timeout(java.lang.String server, int retries, int waittime)
Called when the RPC times out.
-
-
-
Method Detail
-
timeout
public boolean timeout(java.lang.String server, int retries, int waittime)
Called when the RPC times out.- Parameters:
server
- The name of the serverretries
- Number of retries (initially 0)waittime
- Total time waiting for response- Returns:
- bool True to abort, false to continue retrying
-
ok
public void ok(java.lang.String server)
Called when the server responds after a timeout- Parameters:
server
- The name of the server
-
-