📄 abstracteventnotifier.java
字号:
/* * AbstractEventNotifier.java * * Created on 31 gennaio 2003, 21.09 */package org.joone.engine;/** * This class raises an event notification invoking the corrisponnding * Monitor.fireXXX method. The event is raised from within a separate * Thread to avoid the race conditions to happen * * @author pmarrone */public abstract class AbstractEventNotifier implements Runnable { protected Monitor monitor; private Thread myThread; /** Creates a new instance of AbstractEventNotifier */ public AbstractEventNotifier(Monitor mon) { monitor = mon; } /** * The inherited classes must to override this method * invoking into it the desired monitor.fireXXX method */ public abstract void run(); public synchronized void start() { if (myThread == null) { myThread = new Thread(this); myThread.start(); } } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -