public class SteppedHelper extends Object
构造器和说明 |
---|
SteppedHelper() |
限定符和类型 | 方法和说明 |
---|---|
static SteppedHelper |
addListeners(SteppedListener... listeners)
如果需要实时取消,就需要在线程干活之前拿到 SteppedHelper,因此需要上层应用在调用具体分析方法之前
调用这个方法 addListener。
|
void |
cancel()
实时取消当前线程正在干的活
|
static void |
fire(Collection<SteppedListener> listeners,
SteppedEvent event)
此方法用以兼容早期实现的事件发送机制(多线程运行事件会相互干扰)以及最新实现的事件发送机制(使用 ThreadLocal 实现,多线程执行进度信息互不干扰)
|
static void |
fire(EventListenerList listenerList,
SteppedEvent event) |
static void |
fire(SteppedListener[] listeners,
SteppedEvent event) |
SteppedDispatcher |
getDispatcher() |
long |
getNativeThreadID() |
static void |
removeListeners(SteppedListener... listeners) |
void |
setNativeThreadID(int nativeThreadID) |
public long getNativeThreadID()
public void setNativeThreadID(int nativeThreadID)
public SteppedDispatcher getDispatcher()
public void cancel()
public static SteppedHelper addListeners(SteppedListener... listeners)
listeners
- public static void removeListeners(SteppedListener... listeners)
public static void fire(Collection<SteppedListener> listeners, SteppedEvent event)
listeners
- 早期实现,通过静态方法注册的事件event
- public static void fire(EventListenerList listenerList, SteppedEvent event)
public static void fire(SteppedListener[] listeners, SteppedEvent event)
Copyright © 2021–2024 SuperMap. All rights reserved.