users@grizzly.java.net

[Comet] CometContext API Changed in 1.8.6-RC3

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Fri, 19 Sep 2008 09:59:36 -0400

Hi,

yesterday I've commited an updated version of the CometContext API:

https://grizzly.dev.java.net/nonav/apidocs/com/sun/grizzly/comet/CometContext.html

If you have a Comet application, you will need to recompile it without
any changes. The API that has changed is:

public void resumeCometHandler(CometHandler);

is now

public boolean resumeCometHandler(CometHandler)
https://grizzly.dev.java.net/nonav/apidocs/com/sun/grizzly/comet/CometContext.html#resumeCometHandler(com.sun.grizzly.comet.CometHandler)


Mainly, removeCometHandler no longer throw IOException when the
CometHandler is removed by two threads simultaneously. Instead, it
return true is removed successfully, and false when not. Users of that
API might not necessarily needs to check the returned value, but people
doing async read and write will now be able to know when they can read
or write. That will also help the internal Comet implementation to
detect concurrent read or write.

As usual, let me know if you face any issues.

Thanks

-- Jeanfrancois