首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

手指头上的代码-之ACTIVEMQ(3)

2012-07-19 
指尖上的代码--之ACTIVEMQ(3)??public void wakeup() throws InterruptedException {synchronized (runabl

指尖上的代码--之ACTIVEMQ(3)

?

?

public void wakeup() throws InterruptedException { synchronized (runable) {if (queued || shutdown) { return; } queued = true; // The runTask() method will do this for me once we are done // iterating. if (!iterating) { executor.execute(runable); } } }?

其中queued和interating这两个变量是为了防止多次重复调用的。

?

热点排行