src/main/java/pityoulish/jrmi/outlet/LocalOutletFactoryImpl.java
public void closeLocalOutlet(DirectMessageOutlet outlet)
    throws Exception
  {
    if (outlet == null)
       return;

    // PYL:keep
    Missing.here("close the outlet for remote method invocations");
    // As long as an outlet is exported, the RMI runtime keeps the JVM
    // running to serve possible calls. Unexport the outlet to let the
    // JVM terminate gracefully. Calling System.exit would be cheating.
    // PYL:cut
    UnicastRemoteObject.unexportObject(outlet, true);
    // PYL:end
  }
// non-javadoc, see interface LocalOutletFactory
non-javadoc, see interface LocalOutletFactory
non - javadoc see interface LocalOutletFactory
public void closeLocalOutlet(DirectMessageOutlet outlet)
    throws Exception
  {
    if (outlet == null)
       return;
    Missing.here("close the outlet for remote method invocations");
    UnicastRemoteObject.unexportObject(outlet, true);
  }
public void closeLocalOutlet ( DirectMessageOutlet outlet ) throws Exception { if ( outlet == null ) return ; Missing . here ( "close the outlet for remote method invocations" ) ; UnicastRemoteObject . unexportObject ( outlet , true ) ; }
non-javadoc, see interface LocalOutletFactory
non - javadoc see interface LocalOutletFactory
// PYL:keep // As long as an outlet is exported, the RMI runtime keeps the JVM // running to serve possible calls. Unexport the outlet to let the // JVM terminate gracefully. Calling System.exit would be cheating. // PYL:cut // PYL:end