[ANN} Concurrent broadcast now supported

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ANN} Concurrent broadcast now supported

Jeanfrancois Arcand
Salut,

I also added a new feature. By default, when invoking
BroadCaster.boradcast(meg), the calling thread is used to invoke
AtmosphereHandler.onMessage(..). This can be problematic when the
onMessage() blocks and add delays to the remaining
AtmophereHandler.onMessage execution. So now you can configure the
Boradcaster to use an ExecutorService (a thread pool).

Broadcaster.setExecutorService(...)

That will be used when broadcasting events.

A+

-- Jeanfrancois

BTW, live update every day or so on Twitter.com/atmosphere_java


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...