ChatService chatRoom=ChatService.get(name);
if(chatRoom!=null)
{
chatRoom.stop();
service.remove(name);
}
return true;
}
/**
* 獲得一個會議室信息
* @param name 會議室ID
* @return
*/
public static ChatService get(String name)
{
if(service.containsKey(name))return (ChatService)service.get(name);
else return null;
}
public void run() {
// TODO Auto-generated method stub
//this.thread=Thread.currentThread();
while(!isStop)
{
//System.out.println("開始監控一個會議室!"+this.title);
this.flash();
try{
Thread.sleep(5000);
}
catch(Exception e)
延伸閱讀
文章來源于領測軟件測試網 http://www.kjueaiud.com/