什麼是例外拋出?如果拋出一個異常,那麼我會認爲Session對象中有一個關鍵部分需要同步或處理,並且可能不是整個會話。
我還沒有理由利用它們,但我知道有一些渠道作爲wicket-ajax.js(位於org.apache.wicket.ajax包中)的一部分。這些控制如何處理多個AJAX調用。他們可能值得一看。在這個文件是以下注釋:
/**
* Channel management
*
* Wicket Ajax requests are organized in channels. A channel maintain the order of
* requests and determines, what should happen when a request is fired while another
* one is being processed. The default behavior (stack) puts the all subsequent requests
* in a queue, while the drop behavior limits queue size to one, so only the most
* recent of subsequent requests is executed.
* The name of channel determines the policy. E.g. channel with name foochannel|s is
* a stack channel, while barchannel|d is a drop channel.
*
* The Channel class is supposed to be used through the ChannelManager.
*/
正如你所提到的,最終它是從處理請求的線程和另一個在另一個先前處理的請求中被觸發的線程併發訪問的。 Wicket(我相信)真正同步來自同一頁面的請求。謝謝。 – mschayna 2009-12-09 12:42:06