<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Interface java.rmi.server.RMIFailureHandler
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.rmi.server.html">This Package</a>  <a href="java.rmi.server.LoaderHandler.html#_top_">Previous</a>  <a href="java.rmi.server.RemoteCall.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Interface java.rmi.server.RMIFailureHandler
</h1>
<dl>
  <dt> public interface <b>RMIFailureHandler</b>
</dl>
An <code>RMIFailureHandler</code> can be registered via the
 <code>RMISocketFactory.setFailureHandler</code> call. The
 <code>failure</code> method of the handler is invoked when the RMI
 runtime is unable to create a <code>ServerSocket</code> to listen
 for incoming calls. The <code>failure</code> method returns a boolean
 indicating whether the runtime should attempt to re-create the
 <code>ServerSocket</code>.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#failure(java.lang.Exception)"><b>failure</b></a>(Exception)
  <dd>  The <code>failure</code> callback is invoked when the RMI
 runtime is unable to create a <code>ServerSocket</code> via the
 <code>RMISocketFactory</code>.
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="failure(java.lang.Exception)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="failure"><b>failure</b></a>
<pre>
 public abstract boolean failure(<a href="java.lang.Exception.html#_top_">Exception</a> ex)
</pre>
<dl>
  <dd> The <code>failure</code> callback is invoked when the RMI
 runtime is unable to create a <code>ServerSocket</code> via the
 <code>RMISocketFactory</code>. An <code>RMIFailureHandler</code>
 is registered via a call to
 <code>RMISocketFacotry.setFailureHandler</code>.  If no failure
 handler is installed, the default behavior is to attempt to
 re-create the ServerSocket.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> ex - the exception that occurred during <code>ServerSocket</code>
           creation
    <dt> <b>Returns:</b>
    <dd> if true, the RMI runtime attempts to retry
 <code>ServerSocket</code> creation
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.rmi.server.html">This Package</a>  <a href="java.rmi.server.LoaderHandler.html#_top_">Previous</a>  <a href="java.rmi.server.RemoteCall.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
