-
public interface RMIFailureHandlerAnRMIFailureHandlercan be registered via theRMISocketFactory.setFailureHandlercall. Thefailuremethod of the handler is invoked when the RMI runtime is unable to create aServerSocketto listen for incoming calls. Thefailuremethod returns a boolean indicating whether the runtime should attempt to re-create theServerSocket.- Since:
- 1.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanfailure(Exception ex)Thefailurecallback is invoked when the RMI runtime is unable to create aServerSocketvia theRMISocketFactory.
-
-
-
Method Detail
-
failure
boolean failure(Exception ex)
Thefailurecallback is invoked when the RMI runtime is unable to create aServerSocketvia theRMISocketFactory. AnRMIFailureHandleris registered via a call toRMISocketFacotry.setFailureHandler. If no failure handler is installed, the default behavior is to attempt to re-create the ServerSocket.- Parameters:
ex- the exception that occurred duringServerSocketcreation- Returns:
- if true, the RMI runtime attempts to retry
ServerSocketcreation - Since:
- 1.1
- See Also:
RMISocketFactory.setFailureHandler(RMIFailureHandler)
-
-