| 限定符和类型 | 类和说明 |
|---|---|
static class |
Listener.BiFunctionListener<T,U,R> |
static class |
Listener.FunctionListener<T,R> |
static class |
Listener.MethodListener |
static class |
Listener.RunnableListener |
| 限定符和类型 | 字段和说明 |
|---|---|
Listener |
EC.ResultRecord.listener |
| 限定符和类型 | 字段和说明 |
|---|---|
protected Queue<Listener> |
EC.failPassed
执行失败的事件监听
|
protected Map<String,List<Listener>> |
EP.lsMap
事件名 -> 监听器
Listener |
protected Queue<Listener> |
EC.successPassed
成功执行过的事件监听
|
protected List<Listener> |
EC.willPass
要执行的事件链
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Listener |
Listener.limit(int limit)
设置执行次数限制
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<Listener> |
EP.getListeners(String eName)
获取 或 创建 监听器
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected EC |
EC.addResult(Listener listener,
Throwable ex,
Object r) |
Object |
EP.fire(EC ec,
Listener... ls) |
protected EC |
EC.passed(Listener l,
boolean success)
passed一个Listener 代表执行完成一个Listener.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
EP.fire(EC ec,
List<Listener> ls)
发布事件到各个监听者并执行
|
protected void |
EP.sort(List<Listener> ls)
监听器排序
|
protected EC |
EC.start(List<Listener> ls,
EP ep)
开始执行,初始化
|
| 构造器和说明 |
|---|
ResultRecord(Listener listener,
Throwable ex,
Object value) |
Copyright © 2024. All rights reserved.