Yes - thanks for pointing that out.

Kent Tong wrote:

Paul Ferraro <pmf8 <at> columbia.edu> writes:



Actually, that's not possible. The shared janitor thread "locks" its interval after it is created inside getSharedJanitorThread().
setInterval(...) will result in an IllegalStateException() in the code below.



Thanks for the correction. Does it mean that the javadoc may need to be updated?

   /**
    *  ...It is also bad policy to
    *  change the sleep interval on the shared janitor
    *  (though nothing prevents this, either).
    *
    **/
  public synchronized static JanitorThread getSharedJanitorThread()



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to