Hi,
Red5 supports a new feature starting from r1572: "Deferred results".
Methods that are known to run quite some time can move their actual
processing to a background thread and return an instance of
"org.red5.server.net.rtmp.DeferredResult" instead of the real result.
Later when the result of the method is available, the thread can
use "DeferredResult.setResult(Object)" to send it to the client.
Using this technique, the IO thread that originally invoked the
method can be released a lot earlier and doesn't have to wait for
the result.
Great feature !
Thanks
Joachim
_______________________________________________
Red5devs mailing list
Red5devs osflash.org">Red5devs osflash.org
http://osflash.org/mailman/listinfo/red5devs_osflash.org
|