public interface RMIFailureHandler
RMIFailureHandler可以注册通过
RMISocketFactory.setFailureHandler呼叫。该处理器的
failure方法被调用时,RMI运行时无法创建一个
ServerSocket听来电。的
failure方法返回一个布尔值,指示运行库是否应该尝试重新创建
ServerSocket。
boolean failure(异常 ex)
failure回调时调用RMI运行时无法通过
RMISocketFactory创建一个
ServerSocket,
RMIFailureHandler注册通过电话
RMISocketFacotry.setFailureHandler。如果没有安装的故障处理程序,默认行为是试图重新创建ServerSocket。
ex,
ServerSocket创作期间发生异常
ServerSocket创作
RMISocketFactory.setFailureHandler(RMIFailureHandler)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.