public interface EventStore
Title: 事件持久化存储接口
Description: 数据库存储或者文件存储
Copyright: Copyright (c) 2012
Company: seeyon.com
限定符和类型 | 方法和说明 |
---|---|
void |
destroy()
容器销毁调用
|
void |
init()
初始化
|
java.util.List<EventSerialize> |
list(int pageIndex)
列出未执行的事件
|
void |
markAllFail()
标记事件执行失败,不需要恢复执行,所有
注意:定时清除数据
|
void |
markFail(EventSerialize event)
标记事件执行失败,不需要恢复执行
注意:定时清除数据
|
void |
reloadRetryEvent()
重新加载事件,再次分发
|
void |
remove(EventSerialize event)
移除持久化事件
|
void |
removeAll()
移除持久化事件,所有
|
void |
save(EventSerialize event)
持久化事件
|
void init() throws java.sql.SQLException
java.sql.SQLException
void save(EventSerialize event)
event
- void remove(EventSerialize event)
event
- void removeAll()
void markFail(EventSerialize event)
event
- void markAllFail()
java.util.List<EventSerialize> list(int pageIndex)
pageIndex
- 页码void reloadRetryEvent()
void destroy()