tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Frederic <jfcl...@gmail.com>
Subject Re: Proposed simplification of CometEvent
Date Wed, 13 Jun 2007 10:58:58 GMT
On Wed, 2007-06-13 at 12:04 +0200, Remy Maucherat wrote:
> Costin Manolache wrote:
> >> setTimeout() is not optional (the javadoc is out of date, sorry), there
> >> was an agreement on that earlier. Timeout sets the connection timeout,
> >> which is most likely useful even if there are events. It's quite
> >> possible sleep could use a timeout argument (I think calling setTimeout
> >> is more or less mandatory when using sleep, and OTOH calling setTimout
> >> is not as important otherwise).
> > 
> > Ok - then sleep needs the extra argument, and will mean same as 
> > Thread.sleep(),
> > but
> > not-blocking ?
> 
> This sleep is a non blocking call, and instructs the connection to "do 
> nothing until I wake you up (or a timeout occurs, of course)".

may be sleep is not the right name... Would suspend be a better name?

Cheers
Jean-Frederic


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message