⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 badgegarbagethread.java

📁 First of all, the Applet-phone is a SIP User-Agent with audio and text messaging capabilities. But
💻 JAVA
字号:
/* * BadgeGarbageThread.java * * Created on August 1, 2003, 6:26 PM */package gov.nist.examples.bps.reader;import gov.nist.examples.bps.reader.baselistener.*;/** * * @author Deruelle olivier. */public class BadgeGarbageThread extends Thread{        private boolean STOP;    protected BaseReaderNotificationImpl notifier;    protected boolean registered;    protected Badge badge;        /** Creates a new instance of BadgesGarbageThread */    public BadgeGarbageThread(Badge badge,BaseReaderNotificationImpl notifier) {        this.notifier=notifier;        STOP=false;        this.badge=badge;        registered=true;    }     public void run() {        try{            while(!STOP) {                Thread.sleep(4000);                if (registered)                    registered=false;                else {                    notifier.removeActiveBadge(badge);                    stopThread();                }            }        }        catch(Exception e) {            e.printStackTrace();        }    }        public void stopThread() {        STOP=true;        notifier.garbageBadgesList.removeElement(this);    }        }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -