439066 javadoc setStopAtShutdown

This commit is contained in:
Greg Wilkins 2014-07-17 13:25:25 +10:00
parent 94ac37f8c2
commit 6bc08000c7
1 changed files with 7 additions and 0 deletions

View File

@ -158,6 +158,12 @@ public class Server extends HandlerWrapper implements Attributes
} }
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
/** Set stop server at shutdown behaviour.
* @param stop If true, this server instance will be explicitly stopped when the
* JVM is shutdown. Otherwise the JVM is stopped with the server running.
* @see Runtime#addShutdownHook(Thread)
* @see ShutdownThread
*/
public void setStopAtShutdown(boolean stop) public void setStopAtShutdown(boolean stop)
{ {
//if we now want to stop //if we now want to stop
@ -668,6 +674,7 @@ public class Server extends HandlerWrapper implements Attributes
return this.getClass().getName()+"@"+Integer.toHexString(hashCode()); return this.getClass().getName()+"@"+Integer.toHexString(hashCode());
} }
/* ------------------------------------------------------------ */
@Override @Override
public void dump(Appendable out,String indent) throws IOException public void dump(Appendable out,String indent) throws IOException
{ {